@matheusbsbs / matheus-bagliano / commits / 65a5a21d02
Fork 0

Add test for symlinked configuration file updates.

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jul 26, 2007 at 22:13 UTC 65a5a21d024373674d6068a03c71558035775e0c
1 file changed +15
t/t1300-repo-config.sh
+15
@@ -595,4 +595,19 @@ echo >>result
595
596 test_expect_success '--null --get-regexp' 'cmp result expect'
597
598 +test_expect_success 'symlinked configuration' '
599 +
600 + ln -s notyet myconfig &&
601 + GIT_CONFIG=myconfig git config test.frotz nitfol &&
602 + test -h myconfig &&
603 + test -f notyet &&
604 + test "z$(GIT_CONFIG=notyet git config test.frotz)" = znitfol &&
605 + GIT_CONFIG=myconfig git config test.xyzzy rezrov &&
606 + test -h myconfig &&
607 + test -f notyet &&
608 + test "z$(GIT_CONFIG=notyet git config test.frotz)" = znitfol &&
609 + test "z$(GIT_CONFIG=notyet git config test.xyzzy)" = zrezrov
610 +
611 +'
612 +
613 test_done