Przeglądaj źródła

Break on commit seek when found

Signed-off-by: Robert Lin <robertlin1@gmail.com>
Robert Lin 6 lat temu
rodzic
commit
b4af94f526
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      internal/plumbing/ticks.go

+ 1 - 0
internal/plumbing/ticks.go

@@ -141,6 +141,7 @@ func (ticks *TicksSinceStart) Consume(deps map[string]interface{}) (map[string]i
 		for i := range tickCommits {
 			if tickCommits[len(tickCommits)-i-1] == commit.Hash {
 				exists = true
+				break
 			}
 		}
 	}