on master help sign in
Fix to pick the correct HEAD commit
commit5a01635af95ca9e434a358d9beb1a6ba1e7cafaf authorHarendra Kumar <harendra.kumar@gmail.com> dateSun 15 Apr 2018, 19:46 (9 years ago) parent9dfce42
1 file changed+7−1
bench.sh+7−1
bench.sh+7−1
@@ -3,6 +3,12 @@
33print_help () {
44 echo "Usage: $0 [--quick] [--append] [--no-graphs] [--no-measure] \
55[--no-compare] [--base commit] [--candidate commit] -- <gauge options>"
6+ echo
7+ echo "Default generates comparative chart of HEAD^ vs HEAD commit, "
8+ echo "in the 'charts' directory. Use --base and --candidate to select "
9+ echo "the commits to compare. Use --no-compare to just benchmark the "
10+ echo "current workspace only."
11+ echo
612 echo "Any arguments after a '--' are passed directly to guage"
713 echo "You can omit '--' if the gauge args used do not start with a '-'."
814 exit
@@ -128,7 +134,7 @@ if test "$MEASURE" != "0"
128134 else
129135 if test -z "$CANDIDATE"
130136 then
131− CANDIDATE=HEAD
137+ CANDIDATE=$(git rev-parse HEAD)
132138 fi
133139 if test -z "$BASE"
134140 then