summaryrefslogtreecommitdiff
path: root/t/t4201-shortlog.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-11-21 14:05:33 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-21 14:05:33 +0900
commit01e0c53c739854fda6d601a5a49ef1ccacd156fc (patch)
treecee34438b17d4ff74da5e67aee644c814257e2a0 /t/t4201-shortlog.sh
parentMerge branch 'tz/fsf-address-update' into maint (diff)
parentt4201: make use of abbreviation in the test more robust (diff)
downloadtgif-01e0c53c739854fda6d601a5a49ef1ccacd156fc.tar.xz
Merge branch 'cb/t4201-robustify' into maint
A test update. * cb/t4201-robustify: t4201: make use of abbreviation in the test more robust
Diffstat (limited to 't/t4201-shortlog.sh')
-rwxr-xr-xt/t4201-shortlog.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh
index 9df054bf05..da10478f59 100755
--- a/t/t4201-shortlog.sh
+++ b/t/t4201-shortlog.sh
@@ -9,6 +9,7 @@ test_description='git shortlog
. ./test-lib.sh
test_expect_success 'setup' '
+ test_tick &&
echo 1 >a1 &&
git add a1 &&
tree=$(git write-tree) &&
@@ -59,7 +60,7 @@ fuzz() {
file=$1 &&
sed "
s/$_x40/OBJECT_NAME/g
- s/$_x05/OBJID/g
+ s/$_x35/OBJID/g
s/^ \{6\}[CTa].*/ SUBJECT/g
s/^ \{8\}[^ ].*/ CONTINUATION/g
" <"$file" >"$file.fuzzy" &&
@@ -81,7 +82,7 @@ test_expect_success 'pretty format' '
test_expect_success '--abbrev' '
sed s/SUBJECT/OBJID/ expect.template >expect &&
- git shortlog --format="%h" --abbrev=5 HEAD >log &&
+ git shortlog --format="%h" --abbrev=35 HEAD >log &&
fuzz log >log.predictable &&
test_cmp expect log.predictable
'