summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8fb3c00)
raw | patch | inline | side by side (parent: 8fb3c00)
author | SZEDER Gábor <szeder@ira.uka.de> | |
Sat, 14 Feb 2009 16:16:29 +0000 (17:16 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 15 Feb 2009 05:29:50 +0000 (21:29 -0800) |
Extend t1500 with tests of 'git rev-parse --git-dir' when invoked from
other directories of the repository or the work tree.
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
other directories of the repository or the work tree.
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1500-rev-parse.sh | patch | blob | history |
diff --git a/t/t1500-rev-parse.sh b/t/t1500-rev-parse.sh
index 186792e3a2f9e7e03bb871962b256e77b625cf66..48ee07779d64147c3eb8325a3b3f9579f8ec41d8 100755 (executable)
--- a/t/t1500-rev-parse.sh
+++ b/t/t1500-rev-parse.sh
ROOT=$(pwd)
-test_rev_parse toplevel false false true ''
+test_rev_parse toplevel false false true '' .git
cd .git || exit 1
-test_rev_parse .git/ false true false ''
+test_rev_parse .git/ false true false '' .
cd objects || exit 1
test_rev_parse .git/objects/ false true false '' "$ROOT/.git"
cd ../.. || exit 1
mkdir -p sub/dir || exit 1
cd sub/dir || exit 1
-test_rev_parse subdirectory false false true sub/dir/
+test_rev_parse subdirectory false false true sub/dir/ "$ROOT/.git"
cd ../.. || exit 1
git config core.bare true