Skip to content

Commit 0daed41

Browse files
Michael J Grubergitster
authored andcommitted
t1020: test !alias in subdirectory
Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ec014ea commit 0daed41

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t1020-subdirectory.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,17 @@ test_expect_success 'alias expansion' '
118118
git ss
119119
)
120120
'
121+
122+
test_expect_success '!alias expansion' '
123+
pwd >expect &&
124+
(
125+
git config alias.test !pwd &&
126+
cd dir &&
127+
git test >../actual
128+
) &&
129+
test_cmp expect actual
130+
'
131+
121132
test_expect_success 'no file/rev ambiguity check inside .git' '
122133
git commit -a -m 1 &&
123134
(

0 commit comments

Comments
 (0)