git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests: fix autostash
@ 2013-06-07 23:45 Felipe Contreras
  2013-06-08  3:29 ` Ramkumar Ramachandra
  0 siblings, 1 reply; 10+ messages in thread
From: Felipe Contreras @ 2013-06-07 23:45 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Ramkumar Ramachandra, Felipe Contreras

We should call 'git rebase --abort', like a normal user would do.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 t/t3420-rebase-autostash.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/t/t3420-rebase-autostash.sh b/t/t3420-rebase-autostash.sh
index a5e69f3..ff370a3 100755
--- a/t/t3420-rebase-autostash.sh
+++ b/t/t3420-rebase-autostash.sh
@@ -71,8 +71,7 @@ testrebase() {
 		test_must_fail git rebase$type related-onto-branch &&
 		test_path_is_file $dotest/autostash &&
 		! grep dirty file3 &&
-		rm -rf $dotest &&
-		git reset --hard &&
+		git rebase --abort &&
 		git checkout feature-branch
 	'
 
-- 
1.8.3.698.g079b096

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

end of thread, other threads:[~2013-06-08 16:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 23:45 [PATCH] tests: fix autostash Felipe Contreras
2013-06-08  3:29 ` Ramkumar Ramachandra
2013-06-08 10:24   ` Felipe Contreras
2013-06-08 13:19     ` Ramkumar Ramachandra
2013-06-08 14:01       ` Felipe Contreras
2013-06-08 14:04         ` Ramkumar Ramachandra
2013-06-08 14:13           ` Felipe Contreras
2013-06-08 14:13           ` Antoine Pelisse
2013-06-08 15:35             ` Ramkumar Ramachandra
2013-06-08 16:56       ` Jonathan Nieder

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).