Add test for symlinked configuration file updates.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
6cbf973c9a
commit
65a5a21d02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user