mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-06-30 03:14:35 +00:00
Fixes bug where commit hash was not respected.
This commit is contained in:
@@ -163,7 +163,9 @@ func (s *Setup) ListCommits() ([]CommitDetails, error) {
|
||||
|
||||
for commitId, cmt := range tmpResults {
|
||||
if s.Force.Commit != "" && cmt.Hash == s.Force.Commit {
|
||||
debugPrint(fmt.Sprintln(">>>> FOUND MATCH", len(s.Commits), len(tmpResults[commitId:])))
|
||||
s.Commits = tmpResults[commitId:]
|
||||
break
|
||||
} else {
|
||||
s.Commits = tmpResults
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user