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() == "" {
|
if repo.GetMasterBranchName() == "" {
|
||||||
me.forge.VerifyBranchNames(repo)
|
me.forge.VerifyBranchNames(repo)
|
||||||
configSave = true
|
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() == "" {
|
if repo.GetMasterBranchName() == "" {
|
||||||
return log.Errorf("master branch name blank")
|
return log.Errorf("master branch name blank")
|
||||||
|
@ -45,6 +45,7 @@ func checkNormalRepoState(repo *gitpb.Repo) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if repo.GetCurrentBranchName() != repo.GetUserBranchName() {
|
if repo.GetCurrentBranchName() != repo.GetUserBranchName() {
|
||||||
|
configSave = true
|
||||||
if err := repo.CheckoutUser(); err != nil {
|
if err := repo.CheckoutUser(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue