chiark / gitweb /
git-debrebase: merge: test suite: Check wreckage saving
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Aug 2018 17:09:11 +0000 (18:09 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Aug 2018 19:11:09 +0000 (20:11 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/gdr-merge-conflicts

index 4517be4..467dc6a 100755 (executable)
@@ -50,9 +50,21 @@ dch -a 'Merge, only conflict was in debian/changelog'
 t-dch-r-rune dch
 git commit -a --amend --no-edit
 
+junkref=refs/debrebase-wreckage/junk
+git update-ref $junkref v2.1
+
 t-expect-fail F:'divergent anchors' \
 t-git-debrebase
 
+git rev-parse $junkref
+
+t-expect-fail F:'divergent anchors' \
+t-git-debrebase --save-wreckage
+
+test '' = "$(t-git-get-ref-exact $junkref)"
+
+git for-each-ref refs/debrebase-wreckage | egrep .
+
 : ===== late failure in apply =====
 
 git checkout other