From: Michael Rappazzo Date: Fri, 22 Apr 2016 21:53:12 GMT Subject: [PATCH v2 4/4] t1700-split-index: add test for rev-parse --shared-index-path Message-ID: <1461361992-91918-5-git-send-email-rappazzo@gmail.com> In-Reply-To: <1461361992-91918-1-git-send-email-rappazzo@gmail.com> Signed-off-by: Michael Rappazzo --- t/t1700-split-index.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/t/t1700-split-index.sh b/t/t1700-split-index.sh index 8aef49f..d2d9e02 100755 --- a/t/t1700-split-index.sh +++ b/t/t1700-split-index.sh @@ -200,4 +200,21 @@ EOF test_cmp expect actual ' +test_expect_success 'rev-parse --shared-index-path' ' + rm -rf .git && + test_create_repo . && + git update-index --split-index && + ls -t .git/sharedindex* | tail -n 1 >expect && + git rev-parse --shared-index-path >actual && + test_cmp expect actual && + mkdir work && + test_when_finished "rm -rf work" && + ( + cd work && + ls -t ../.git/sharedindex* | tail -n 1 >expect && + git rev-parse --shared-index-path >actual && + test_cmp expect actual + ) +' + test_done -- 2.8.0