From: Ian Jackson Date: Thu, 15 Feb 2018 18:54:38 +0000 (+0000) Subject: git-debrebase: check head is clean before starting X-Git-Tag: archive/debian/5.0~231 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=1318a9419f2b6dae0318146cb9fe08d3f4ceb780 git-debrebase: check head is clean before starting Signed-off-by: Ian Jackson --- diff --git a/git-debrebase b/git-debrebase index 5913aa33..70808da0 100755 --- a/git-debrebase +++ b/git-debrebase @@ -795,7 +795,10 @@ sub walk ($;$$) { return @r } -sub get_head () { return git_rev_parse qw(HEAD); } +sub get_head () { + git_check_unmodified(); + return git_rev_parse qw(HEAD); +} sub update_head ($$$) { my ($old, $new, $mrest) = @_; @@ -929,7 +932,6 @@ sub record_ffq_prev () { } sub cmd_new_upstream_v0 () { - # tree should be clean and this is not checked # automatically and unconditionally launders before rebasing # if rebase --abort is used, laundering has still been done