diff options
author | SZEDER Gábor <szeder@ira.uka.de> | 2009-02-14 17:16:29 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-14 21:29:50 -0800 |
commit | db7fee8758cfe17b0f06ddae7bb4259ed506240c (patch) | |
tree | 1b76f388008b5aea3c7e5008bea2c8f07e75c04e | |
parent | Move 'rev-parse --git-dir' test to t1500 (diff) | |
download | tgif-db7fee8758cfe17b0f06ddae7bb4259ed506240c.tar.xz |
t1500: more 'git rev-parse --git-dir' tests
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>
-rwxr-xr-x | t/t1500-rev-parse.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t1500-rev-parse.sh b/t/t1500-rev-parse.sh index 186792e3a2..48ee07779d 100755 --- a/t/t1500-rev-parse.sh +++ b/t/t1500-rev-parse.sh @@ -37,17 +37,17 @@ test_rev_parse() { 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 |