summaryrefslogtreecommitdiff
path: root/t/t1020-subdirectory.sh
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2011-04-27 10:36:26 +0200
committerJunio C Hamano <gitster@pobox.com>2011-04-27 10:49:59 -0700
commit0daed41791373a5530c2b33e09b134ce8820e0c2 (patch)
treeecbbc7708db20a3d419255e56cd4cd7a9b4c5afa /t/t1020-subdirectory.sh
parentec014eac0e9e6f30cbbca616090fa2ecf74797e7 (diff)
downloadgit-0daed41791373a5530c2b33e09b134ce8820e0c2.tar.gz
t1020: test !alias in subdirectory
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1020-subdirectory.sh')
-rwxr-xr-xt/t1020-subdirectory.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t1020-subdirectory.sh b/t/t1020-subdirectory.sh
index 1fd187c5eb..66e40d38a3 100755
--- a/t/t1020-subdirectory.sh
+++ b/t/t1020-subdirectory.sh
@@ -118,6 +118,17 @@ test_expect_success 'alias expansion' '
git ss
)
'
+
+test_expect_success '!alias expansion' '
+ pwd >expect &&
+ (
+ git config alias.test !pwd &&
+ cd dir &&
+ git test >../actual
+ ) &&
+ test_cmp expect actual
+'
+
test_expect_success 'no file/rev ambiguity check inside .git' '
git commit -a -m 1 &&
(