Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backend/internal/adj/git.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package adj

import (
"log"
"os"
"path/filepath"

Expand Down Expand Up @@ -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
}

Expand Down
2 changes: 2 additions & 0 deletions backend/pkg/adj/git.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package adj

import (
"log"
"os"
"path/filepath"

Expand Down Expand Up @@ -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
}

Expand Down
Loading