diff --git a/backend/internal/adj/git.go b/backend/internal/adj/git.go index 8eb3a11b8..95b48d20d 100644 --- a/backend/internal/adj/git.go +++ b/backend/internal/adj/git.go @@ -1,6 +1,7 @@ package adj import ( + "log" "os" "path/filepath" @@ -35,6 +36,7 @@ func updateRepo(AdjBranch string) error { _, err = git.PlainClone(tempPath, false, cloneOptions) if err != nil { // If the clone fails, work with the local ADJ + log.Printf("Warning: Could not clone ADJ branch '%s' from remote. Working with local ADJ. Error: %v", AdjBranch, err) return nil } diff --git a/backend/pkg/adj/git.go b/backend/pkg/adj/git.go index 8eb3a11b8..95b48d20d 100644 --- a/backend/pkg/adj/git.go +++ b/backend/pkg/adj/git.go @@ -1,6 +1,7 @@ package adj import ( + "log" "os" "path/filepath" @@ -35,6 +36,7 @@ func updateRepo(AdjBranch string) error { _, err = git.PlainClone(tempPath, false, cloneOptions) if err != nil { // If the clone fails, work with the local ADJ + log.Printf("Warning: Could not clone ADJ branch '%s' from remote. Working with local ADJ. Error: %v", AdjBranch, err) return nil }