sync_client_software: depth=1 fetch, clean from repo root; gitignore cleanup #25
Reference in New Issue
Block a user
Delete Branch "unbrot/fedora-OEMDRV:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes
sync_client_software.sh
git rebase HEAD^withgit fetch --depth=1+git reset --hard FETCH_HEADto keep only the latest commit on each upgradegit -C "${SYSCONFIGPATH}" clean -fdto remove untracked non-gitignored files (e.g. stale files synced in from Nextcloud);-Cis required because the script runs fromsystem_setup/andgit cleanscopes to the current directory onlygit gc --prune=nowto immediately purge unreachable history objects.gitignore
config/.sync_*.dbentryconfig/setup_system.conf.baktoconfig/*.bakto cover all timestamped backup filesconfig.d/*.bakfor the same reasongit clean -fd scopes to the current directory and below, so running it from the system_setup/ subdirectory missed untracked files in sibling dirs like config/. Use -C "${SYSCONFIGPATH}" to always clean from the repo root regardless of invocation directory. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>sync_client_software: depth=1 fetch, clean untracked files from repo rootto sync_client_software: depth=1 fetch, clean from repo root; gitignore cleanup