Skip to content

Commit

Permalink
t1500: more 'git rev-parse --git-dir' tests
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
SZEDER Gábor authored and Junio C Hamano committed Feb 15, 2009
1 parent 8fb3c00 commit db7fee8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/t1500-rev-parse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db7fee8

Please sign in to comment.