chiark / gitweb /
test suite: gdr-new-upstream: Use new branch rather than reset
[dgit.git] / tests / tests / gdr-newupstream
index 59acca848343980edbe2d0b2d45aa350ae070a3f..ed80554f1b654885320a1fc08a3eb4f9b88cbc03 100755 (executable)
@@ -54,7 +54,7 @@ git branch ordinary
 
 : ----- 'with --anchor' -----
 
-git reset --hard startpoint
+git checkout -b with-anchor startpoint
 
 t-git-debrebase analyse >../anal.anch
 anchor=$(perl <../anal.anch -ne '