summaryrefslogtreecommitdiff
path: root/reloadBranches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-18 15:49:13 -0600
committerJeff Carr <[email protected]>2025-01-18 15:49:13 -0600
commit93e4eae19d13f709e2a50e5f7d484e066d526c3d (patch)
tree88d825ea4850614485a180f991d12d261f478bc7 /reloadBranches.go
parent9094779044768fa04ca02b171eec1c8375edfe42 (diff)
move away from maps in protobuf?
Diffstat (limited to 'reloadBranches.go')
-rw-r--r--reloadBranches.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/reloadBranches.go b/reloadBranches.go
index 74cc91e..e1859c1 100644
--- a/reloadBranches.go
+++ b/reloadBranches.go
@@ -1,6 +1,7 @@
package gitpb
import (
+ "fmt"
"io/ioutil"
"os"
"path/filepath"
@@ -113,6 +114,22 @@ func ListFiles(directory string) []string {
return files
}
+// forge doesn't want a remote user branch
+// this will make sure the user branch is only local
+func (repo *Repo) checkUserBranch() error {
+ ubn := repo.GetUserBranchName()
+ log.Info("user branch name:", ubn, repo.GetGoPath())
+ if repo.GitConfig == nil {
+ return fmt.Errorf("GitConfig == nil")
+ }
+
+ for _, l := range repo.GitConfig.Local {
+ log.Info("local branch name:", l.Name)
+ }
+
+ return nil
+}
+
func (repo *Repo) ExamineBranches() *GitTag {
var hashCheck string
all := repo.GetBranches()