summaryrefslogtreecommitdiff
path: root/internal/sync/git_operations.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-13 23:03:57 +0300
committerPaul Buetow <paul@buetow.org>2025-07-13 23:03:57 +0300
commit5feaed014f83e83e8accb1a1ff43930cb1fb5e5d (patch)
tree0b0199286b73c0d942bfc172c79595529f329986 /internal/sync/git_operations.go
parent044a47095716c1953aab2495cc63201aeaba12bf (diff)
fix: skip fetching from backup locations when --backup flag is not used
- Check all organizations (not just active ones) to identify backup locations - Skip fetching from backup remotes when backup is not enabled - Remove duplicate "Fetching" message from fetchRemote function - Prevents "Warning: Remote repository does not exist yet" for backup locations This ensures backup locations are truly opt-in and don't interfere with normal sync operations. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/sync/git_operations.go')
-rw-r--r--internal/sync/git_operations.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/sync/git_operations.go b/internal/sync/git_operations.go
index 3bd6618..efa27f5 100644
--- a/internal/sync/git_operations.go
+++ b/internal/sync/git_operations.go
@@ -127,7 +127,6 @@ func getRemotesList() (map[string]bool, error) {
// fetchRemote fetches from a single remote with error handling
func fetchRemote(remote string) error {
- fmt.Printf("Fetching %s\n", remote)
cmd := exec.Command("git", "fetch", remote, "--prune", "--tags")
output, err := cmd.CombinedOutput()