diff options
Diffstat (limited to 'reloadBranches.go')
| -rw-r--r-- | reloadBranches.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reloadBranches.go b/reloadBranches.go index b5fadb2..39a0a12 100644 --- a/reloadBranches.go +++ b/reloadBranches.go @@ -118,11 +118,11 @@ func ListFiles(directory string) []string { func (repo *Repo) checkUserBranch() error { ubn := repo.GetUserBranchName() log.Info("user branch name:", ubn, repo.GetGoPath()) - if repo.GitConfig == nil { + if repo.Config == nil { return fmt.Errorf("GitConfig == nil") } - for _, l := range repo.GitConfig.Local { + for _, l := range repo.Config.Local { log.Info("local branch name:", l.Name) } |
