chiark / gitweb /
test suite: Test GIT_REFLOG_ACTION setting by git-debrebase
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Jun 2018 17:44:55 +0000 (18:44 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 Jun 2018 18:20:54 +0000 (19:20 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/gdr-newupstream

index 536f49c..cfa0052 100755 (executable)
@@ -37,6 +37,7 @@ git tag v2.1 upstream
 
 t-git-debrebase new-upstream $v
 t-gdr-good laundered
+git reflog | egrep 'debrebase new-upstream.*checkout'
 
 t-git-debrebase stitch
 t-gdr-good stitched
@@ -54,8 +55,11 @@ anchor=$(perl <../anal.anch -ne '
        exit;
 ')
 
+GIT_REFLOG_ACTION='STUNT-RLA' \
 t-git-debrebase --anchor=$anchor -fanchor-treated new-upstream $v upstream
 t-gdr-good laundered
+git reflog | egrep 'STUNT-RLA: debrebase new-upstream'
+git reflog | egrep 'STUNT-RLA: debrebase: launder for new upstream'
 
 t-git-debrebase stitch
 t-gdr-good stitched