Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t1500: more 'git rev-parse --git-dir' tests
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>
t/t1500-rev-parse.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
8fb3c00
)
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
@@
-37,17
+37,17
@@
test_rev_parse() {
ROOT=$(pwd)
ROOT=$(pwd)
-test_rev_parse toplevel false false true ''
+test_rev_parse toplevel false false true ''
.git
cd .git || exit 1
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
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
cd ../.. || exit 1
git config core.bare true