diff options
Diffstat (limited to 'doCommit.go')
| -rw-r--r-- | doCommit.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doCommit.go b/doCommit.go index b86ba31..404171a 100644 --- a/doCommit.go +++ b/doCommit.go @@ -45,8 +45,9 @@ func doCommit() { } if repo.GetCurrentBranchName() != repo.GetUserBranchName() { - me.found.Append(repo) - me.forge.PrintHumanTable(me.found) + found := new(gitpb.Repos) + found.Append(repo) + me.forge.PrintHumanTable(found) log.Info("") log.Info("wrong branch. Can not commit on", repo.GetCurrentBranchName()) log.Info("") @@ -72,8 +73,9 @@ func doCommit() { func doCommitRepo(repo *gitpb.Repo) error { if repo.GetCurrentBranchName() != repo.GetUserBranchName() { - me.found.Append(repo) - me.forge.PrintHumanTable(me.found) + found := new(gitpb.Repos) + found.Append(repo) + me.forge.PrintHumanTable(found) log.Info("") log.Info("wrong branch. Can not commit on", repo.GetCurrentBranchName()) log.Info("") |
