Skip to content

Commit

Permalink
Merge branch 'sb/t1020-cleanup' into maint
Browse files Browse the repository at this point in the history
There was a commented-out (instead of being marked to expect
failure) test that documented a breakage that was fixed since the
test was written; turn it into a proper test.

* sb/t1020-cleanup:
  subdirectory tests: code cleanup, uncomment test
  • Loading branch information
Junio C Hamano committed Jun 5, 2015
2 parents e9f767e + 66d2e04 commit 5e896a3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions t/t1020-subdirectory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,20 @@ test_expect_success 'no file/rev ambiguity check inside .git' '
)
'

test_expect_success 'no file/rev ambiguity check inside a bare repo' '
test_expect_success 'no file/rev ambiguity check inside a bare repo (explicit GIT_DIR)' '
test_when_finished "rm -fr foo.git" &&
git clone -s --bare .git foo.git &&
(
cd foo.git &&
# older Git needed help by exporting GIT_DIR=.
# to realize that it is inside a bare repository.
# We keep this test around for regression testing.
GIT_DIR=. git show -s HEAD
)
'

# This still does not work as it should...
: test_expect_success 'no file/rev ambiguity check inside a bare repo' '
test_expect_success 'no file/rev ambiguity check inside a bare repo' '
test_when_finished "rm -fr foo.git" &&
git clone -s --bare .git foo.git &&
(
cd foo.git &&
Expand All @@ -180,7 +184,6 @@ test_expect_success 'no file/rev ambiguity check inside a bare repo' '
'

test_expect_success SYMLINKS 'detection should not be fooled by a symlink' '
rm -fr foo.git &&
git clone -s .git another &&
ln -s another yetanother &&
(
Expand Down

0 comments on commit 5e896a3

Please sign in to comment.