From 466065cdd76772758bb7f9a3116814b849fb1856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20F=C3=ADsica?= Date: Mon, 26 May 2025 14:56:40 +0200 Subject: [PATCH] Warn when using local ADJ --- backend/internal/adj/git.go | 2 ++ backend/pkg/adj/git.go | 2 ++ 2 files changed, 4 insertions(+) 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 }