diff --git a/Makefile b/Makefile index 931e1aba7..4bcd9aab0 100644 --- a/Makefile +++ b/Makefile @@ -285,9 +285,12 @@ clean-all: ## Delete ALL old Nix generations and garbage collect (nuclear). @echo "✅ Full cleanup complete" .PHONY: reset -reset: git-submodule-sync ## Reset git status to clean (restore all changes and reinitialize submodules). +reset: ## Reset git status to clean (restore all changes and reinitialize submodules). @echo "🔄 Resetting git status to clean..." - @git checkout -- . + @git reset --hard HEAD + @git submodule foreach --recursive 'git reset --hard HEAD && git clean -fd' + @git submodule sync --recursive + @git submodule update --init --recursive --force @echo "✅ Git status reset to clean" .PHONY: services @@ -1382,7 +1385,7 @@ systemctl-tmux-session-logger: ## Restart tmux-session-logger systemd timer and .PHONY: git-submodule-sync git-submodule-sync: ## Sync and update git submodules. @echo "🔁 Syncing and updating git submodules..." - @git submodule sync + @git submodule sync --recursive @git submodule update --init --recursive @echo "✅ Submodules synced and updated" diff --git a/dotagents b/dotagents index 082de5d7f..f8b3e294d 160000 --- a/dotagents +++ b/dotagents @@ -1 +1 @@ -Subproject commit 082de5d7fcc8669bdda61bf5c2c85232f3bdcd98 +Subproject commit f8b3e294d40011eb04b6dc88cc9e4e8d2231dc12