diff options
author | Jeff King <peff@peff.net> | 2017-03-03 02:36:33 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-03 10:55:27 -0800 |
commit | 28e1fb54665f6f953ba16f75981195f5aa70f59b (patch) | |
tree | 4c302e1f4d044f969697501be939606065b446f2 /t/Git-SVN/Utils/collapse_dotdot.t | |
parent | t/perf: use $MODERN_GIT for all repo-copying steps (diff) | |
download | tgif-28e1fb54665f6f953ba16f75981195f5aa70f59b.tar.xz |
t/perf: add fallback for pre-bin-wrappers versions of git
It's tempting to say:
./run v1.0.0 HEAD
to see how we've sped up Git over the years. Unfortunately,
this doesn't quite work because versions of Git prior to
v1.7.0 lack bin-wrappers, so our "run" script doesn't
correctly put them in the PATH.
Worse, it means we silently find whatever other "git" is in
the PATH, and produce test results that have no bearing on
what we asked for.
Let's fallback to the main git directory when bin-wrappers
isn't present. Many modern perf scripts won't run with such
an antique version of Git, of course, but at least those
failures are detected and reported (and you're free to write
a limited perf script that works across many versions).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/Git-SVN/Utils/collapse_dotdot.t')
0 files changed, 0 insertions, 0 deletions