fix: 🐛 fixed failed error message on non changes

This commit is contained in:
2026-03-15 21:35:59 +03:00
parent c51e4ea188
commit aae200eeea
2 changed files with 4 additions and 3 deletions

5
git.go
View File

@@ -87,9 +87,10 @@ func GitPull(cfg *Config) error {
return nil return nil
} }
// GitStatusChanged reports true when the working tree has uncommitted changes. // GitStatusChanged reports true when there are changes in the machine-managed
// dynamic directory. Unrelated repository changes are intentionally ignored.
func GitStatusChanged(cfg *Config) (bool, error) { func GitStatusChanged(cfg *Config) (bool, error) {
out, err := gitOutput(cfg, "status", "--porcelain") out, err := gitOutput(cfg, "status", "--porcelain", "--", cfg.DynamicDir)
if err != nil { if err != nil {
return false, err return false, err
} }

View File

@@ -82,7 +82,7 @@ func Reconcile(cfg *Config) {
return return
} }
if !changed { if !changed {
slog.Info("reconcile complete — no changes to commit") slog.Info("reconcile complete — no dynamic DNS changes to commit")
return return
} }