summaryrefslogtreecommitdiff
path: root/t/t9300-fast-import.sh
diff options
context:
space:
mode:
authorAnn T Ropea <bedhanger@gmx.de>2017-12-03 21:27:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-04 16:25:35 (GMT)
commita2cd709de314a7bfa038e14fd36f1d21077b4173 (patch)
tree49da7a18df71cc8cf4f3e6d1a05e44c1b654717a /t/t9300-fast-import.sh
parentf61d89e1009da8025794057ca87c21e277d380fa (diff)
downloadgit-a2cd709de314a7bfa038e14fd36f1d21077b4173.zip
git-a2cd709de314a7bfa038e14fd36f1d21077b4173.tar.gz
git-a2cd709de314a7bfa038e14fd36f1d21077b4173.tar.bz2
print_sha1_ellipsis: introduce helper
Introduce a helper print_sha1_ellipsis() that pays attention to the GIT_PRINT_SHA1_ELLIPSIS environment variable, and prepare the tests to unconditionally set it for the test pieces that will be broken once the code stops showing the extra dots by default. The removal of these dots is merely a plan at this step and has not happened yet but soon will. Document GIT_PRINT_SHA1_ELLIPSIS. Signed-off-by: Ann T Ropea <bedhanger@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9300-fast-import.sh')
-rwxr-xr-xt/t9300-fast-import.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh
index d47560b..e4d06ac 100755
--- a/t/t9300-fast-import.sh
+++ b/t/t9300-fast-import.sh
@@ -876,7 +876,7 @@ test_expect_success 'L: verify internal tree sorting' '
EXPECT_END
git fast-import <input &&
- git diff-tree --abbrev --raw L^ L >output &&
+ GIT_PRINT_SHA1_ELLIPSIS="yes" git diff-tree --abbrev --raw L^ L >output &&
test_cmp expect output
'