From: Junio C Hamano Date: Fri, 27 Jul 2007 05:13:12 +0000 (-0700) Subject: Add test for symlinked configuration file updates. X-Git-Tag: v1.5.3-rc4~41^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=65a5a21d024373674d6068a03c71558035775e0c;p=git.git Add test for symlinked configuration file updates. Signed-off-by: Junio C Hamano --- diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index 1c43cc333..187ca2df5 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -595,4 +595,19 @@ echo >>result test_expect_success '--null --get-regexp' 'cmp result expect' +test_expect_success 'symlinked configuration' ' + + ln -s notyet myconfig && + GIT_CONFIG=myconfig git config test.frotz nitfol && + test -h myconfig && + test -f notyet && + test "z$(GIT_CONFIG=notyet git config test.frotz)" = znitfol && + GIT_CONFIG=myconfig git config test.xyzzy rezrov && + test -h myconfig && + test -f notyet && + test "z$(GIT_CONFIG=notyet git config test.frotz)" = znitfol && + test "z$(GIT_CONFIG=notyet git config test.xyzzy)" = zrezrov + +' + test_done