From 7e5a9264f38aac800053ee695177bfc493bfb853 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 2 Jun 2026 21:23:23 +0300 Subject: make sure to also commit new untracked files in git-auto-sync --- scripts/git-auto-sync.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/git-auto-sync.sh') diff --git a/scripts/git-auto-sync.sh b/scripts/git-auto-sync.sh index 07f43f2..8c9573e 100755 --- a/scripts/git-auto-sync.sh +++ b/scripts/git-auto-sync.sh @@ -34,7 +34,8 @@ sync_repo() { return fi - if git diff --quiet; then + # Check for ANY changes, including untracked files + if [[ -z $(git status --porcelain) ]]; then echo "No unstaged changes in $repo_path" else echo "Committing changes in $repo_path..." -- cgit v1.3.1