[minor] don't find "Hint: gc" for action (#20170)

This commit is contained in:
ringabout 2022-08-07 23:50:26 +08:00 • committed by GitHub
commit fd6640fcda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,9 +9,7 @@ proc main() =
doAssert exitCode == 0, output doAssert exitCode == 0, output
var start = rfind(output, "Hint: gc") let start = rfind(output, "Hint: mm")
if start < 0:
start = rfind(output, "Hint: mm")
doAssert parseUntil(output, msg, "; proj", start) > 0, output doAssert parseUntil(output, msg, "; proj", start) > 0, output
let (commitHash, _) = execCmdEx("""git log --format="%H" -n 1""") let (commitHash, _) = execCmdEx("""git log --format="%H" -n 1""")