Skip to content

Commit d53e4fd

Browse files
wuany-p
authored and
y-p
committed
BLD: test_perf, retrieve short form hash from git directly GH4654
1 parent d536ff6 commit d53e4fd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

vb_suite/test_perf.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
class RevParseAction(argparse.Action):
7171
def __call__(self, parser, namespace, values, option_string=None):
7272
import subprocess
73-
cmd = 'git rev-parse {0}'.format(values)
73+
cmd = 'git rev-parse --short {0}'.format(values)
7474
rev_parse = subprocess.check_output(cmd, shell=True)
7575
setattr(namespace, self.dest, rev_parse.strip())
7676

@@ -454,11 +454,6 @@ def print_report(df,h_head=None,h_msg="",h_baseline=None,b_msg=""):
454454

455455
def main():
456456
from suite import benchmarks
457-
# GitRepo wants exactly 7 character hash?
458-
if args.base_commit:
459-
args.base_commit = args.base_commit[:7]
460-
if args.target_commit:
461-
args.target_commit = args.target_commit[:7]
462457

463458
if not args.log_file:
464459
args.log_file = os.path.abspath(

0 commit comments

Comments
 (0)