diff --git a/git.go b/git.go index 961bf639b7e958f7d7304d2064f87f21a05aa9d7..50308f4241abb1e1485b576d2a8d7bacd09efee6 100644 --- a/git.go +++ b/git.go @@ -13,10 +13,10 @@ import ( type CommitType int const ( - FixCommit CommitType = iota + OtherCommit CommitType = iota FeatCommit BreakingCommit - OtherCommit + FixCommit ) func GetCommitType(path string) (CommitType, error) { @@ -107,10 +107,8 @@ func getCommitTypeSinceTag(r *git.Repository, tagCommit *object.Commit) (CommitT commitType = BreakingCommit found = true return storer.ErrStop // stop iteration - } else { - commitType = OtherCommit } - + return nil }) if err != nil {