aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-07-26 22:13:12 -0700
committerJunio C Hamano <gitster@pobox.com>2007-07-27 00:02:05 -0700
commit65a5a21d024373674d6068a03c71558035775e0c (patch)
tree0e158f1724c561cb70157d46f584692833237237 /t
parent6cbf973c9a6f06e9c45b3f6a76f0ceae8e7fd291 (diff)
downloadgit-65a5a21d024373674d6068a03c71558035775e0c.tar.gz
git-65a5a21d024373674d6068a03c71558035775e0c.tar.xz
Add test for symlinked configuration file updates.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t1300-repo-config.sh15
1 files changed, 15 insertions, 0 deletions
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