diff options
Diffstat (limited to 'doCheckout.go')
| -rw-r--r-- | doCheckout.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/doCheckout.go b/doCheckout.go index 1ea4b67..e7f5430 100644 --- a/doCheckout.go +++ b/doCheckout.go @@ -43,7 +43,9 @@ func doCheckDirtyAndConfigSave() { dirty := repo.IsDirty() if repo.CheckDirty() { count += 1 - me.found.AppendUniqueGoPath(repo) + if me.found.AppendByGoPath(repo) { + log.Info("doCheckDirtyAndConfigSave() repo already existed", repo.GetGoPath()) + } if !dirty { configSave = true } @@ -64,7 +66,8 @@ func IsEverythingOnDevel() bool { repo := all.Next() if repo.GetCurrentBranchName() != repo.GetDevelBranchName() { // log.Info(repo.GetFullPath(), repo.GetCurrentBranchName(), repo.GetDevelBranchName()) - me.found.AppendUniqueGoPath(repo) + // add this to the list of "found" repos + me.found.AppendByGoPath(repo) } } if len(me.found.Repos) == 0 { @@ -79,7 +82,7 @@ func IsEverythingOnUser() bool { for all.Scan() { repo := all.Next() if repo.GetCurrentBranchName() != repo.GetUserBranchName() { - me.found.AppendUniqueGoPath(repo) + me.found.AppendByGoPath(repo) } } if len(me.found.Repos) == 0 { |
