summaryrefslogtreecommitdiff
path: root/reloadBranches.go
diff options
context:
space:
mode:
Diffstat (limited to 'reloadBranches.go')
-rw-r--r--reloadBranches.go4
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)
}