git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] t2017: redo physical reflog existance check
@ 2010-07-22  1:46 Erick Mattos
  2010-07-22 17:35 ` Junio C Hamano
  0 siblings, 1 reply; 8+ messages in thread
From: Erick Mattos @ 2010-07-22  1:46 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Erick Mattos

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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-08-24 18:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22  1:46 [PATCH] t2017: redo physical reflog existance check Erick Mattos
2010-07-22 17:35 ` Junio C Hamano
2010-07-22 18:58   ` Erick Mattos
2010-07-23  2:23     ` Junio C Hamano
2010-07-23 15:04       ` Erick Mattos
2010-08-24  4:03         ` Jonathan Nieder
2010-08-24 16:57           ` Junio C Hamano
2010-08-24 18:57           ` Erick Mattos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).