automated snapshot

This commit is contained in:
sumi
2025-12-15 01:47:25 -06:00
parent 986275469c
commit 2ba6a7c253

View File

@@ -192,7 +192,11 @@ func CommitAllIfDirty(repoPath, message string, log *log.Logger) (commitHash str
}
if status.IsClean() {
return "", branch, false, nil
hash, err := HeadHash(repoPath)
if err != nil {
log.Printf("Repo was clean but there was an error checking the commit for HEAD: %v", err)
}
return hash, branch, false, nil
}
// Stage everything (git add -A)