Fixes bug where commit hash was not respected.

This commit is contained in:
2021-08-02 15:40:19 +01:00
parent 78fdc814dc
commit d4443075f2
4 changed files with 32 additions and 14 deletions
+2
View File
@@ -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
}