]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Appveyor CI: Make short commits 10 hexdigits long
authorteor <teor@torproject.org>
Tue, 31 Jul 2018 01:10:55 +0000 (11:10 +1000)
committerteor <teor@torproject.org>
Tue, 31 Jul 2018 01:13:17 +0000 (11:13 +1000)
That's what git does for tor.

Part of 26979.

scripts/test/appveyor-irc-notify.py

index 297b02b1584e3d34c64b2e3286ef2a63e9121d9c..fc2ead16479da18c6d793558d0d6f324d87adc35 100644 (file)
@@ -25,6 +25,7 @@
 #
 # Modified by teor in 2018:
 #  - fix github provider detection ('gitHub' or 'gitHubEnterprise', apparently)
+#  - make short commits 10 hexdigits long (that's what git does for tor)
 
 # This program is free software; you can redistribute it and/or modify it under the
 # terms of the GNU General Public License as published by the Free Software Foundation;
@@ -119,7 +120,7 @@ def appveyor_vars():
 
     vars.update(
         build_url=BUILD_FMT.format(**vars),
-        short_commit=vars["repo_commit"][:7],
+        short_commit=vars["repo_commit"][:10],
     )
     return vars