[PATCH] t2017: redo physical reflog existance check
- From
Erick Mattos <erick.mattos@gmail.com>
- Date
- Jul 22, 2010, 01:46 UTC
- Message-ID
- <1279763190-32757-1-git-send-email-erick.mattos@gmail.com>
Commit 6e6842e wiped out physical reflog checks of tests because of redundancy and to hide low level detail of the implementation.
Although this is not a problem to all the other changes, it is laming to the tenth test. The implementation of the correspondent problem creates a "touch" reflog that must be wiped out if not used by committing the new branch.
Signed-off-by: Erick Mattos <erick.mattos@gmail.com> --- t/t2017-checkout-orphan.sh | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/t/t2017-checkout-orphan.sh b/t/t2017-checkout-orphan.sh index 2d2f63f..0d5d0a0 100755 --- a/t/t2017-checkout-orphan.sh +++ b/t/t2017-checkout-orphan.sh @@ -93,8 +93,10 @@ test_expect_success '--orphan with -l makes reflog when core.logAllRefUpdates = test_expect_success 'giving up --orphan not committed when -l and core.logAllRefUpdates = false deletes reflog' ' git checkout master && git checkout -l --orphan eta && + test -f .git/logs/refs/heads/eta && test_must_fail git rev-parse --verify eta@{0} && git checkout master && + ! test -f .git/logs/refs/heads/eta && test_must_fail git rev-parse --verify eta@{0} '
-- 1.7.2.1.ga86e3