better output with 'forge normal'
This commit is contained in:
parent
c4252d2103
commit
731a4d9da8
|
@ -30,7 +30,7 @@ func checkNormalRepoState(repo *gitpb.Repo) error {
|
|||
if repo.GetMasterBranchName() == "" {
|
||||
me.forge.VerifyBranchNames(repo)
|
||||
configSave = true
|
||||
log.Info("ABNORMAL: master branch name was blank in", repo.GetFullPath())
|
||||
// log.Info("ABNORMAL: master branch name was blank in", repo.GetFullPath())
|
||||
}
|
||||
if repo.GetMasterBranchName() == "" {
|
||||
return log.Errorf("master branch name blank")
|
||||
|
@ -45,6 +45,7 @@ func checkNormalRepoState(repo *gitpb.Repo) error {
|
|||
return err
|
||||
}
|
||||
if repo.GetCurrentBranchName() != repo.GetUserBranchName() {
|
||||
configSave = true
|
||||
if err := repo.CheckoutUser(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue