summaryrefslogtreecommitdiff
path: root/t/t9700-perl-git.sh
diff options
context:
space:
mode:
authorFrank Lichtenheld <flichtenheld@astaro.com>2009-05-07 13:41:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-09 15:25:55 (GMT)
commitda159c7759418bb14af655968dfa7a98bdcb8661 (patch)
treeb5d108f10e1c6d05988693e8c0f3c319f8c9a121 /t/t9700-perl-git.sh
parentf01f1099f40f24fe6f7802185340a6fa3a3d4f35 (diff)
downloadgit-da159c7759418bb14af655968dfa7a98bdcb8661.zip
git-da159c7759418bb14af655968dfa7a98bdcb8661.tar.gz
git-da159c7759418bb14af655968dfa7a98bdcb8661.tar.bz2
Git.pm: Set GIT_WORK_TREE if we set GIT_DIR
Otherwise git will use the current directory as work tree which will lead to unexpected results if we operate in sub directory of the work tree. Signed-off-by: Frank Lichtenheld <flichtenheld@astaro.com> Acked-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9700-perl-git.sh')
-rwxr-xr-xt/t9700-perl-git.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t9700-perl-git.sh b/t/t9700-perl-git.sh
index b4ca244..4eb7d3f 100755
--- a/t/t9700-perl-git.sh
+++ b/t/t9700-perl-git.sh
@@ -29,6 +29,10 @@ test_expect_success \
git add . &&
git commit -m "first commit" &&
+ echo "new file in subdir 2" > directory2/file2 &&
+ git add . &&
+ git commit -m "commit in directory2" &&
+
echo "changed file 1" > file1 &&
git commit -a -m "second commit" &&