X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit-badcommit-fixup;h=32d5f0b1d3178004b05b4dbf25f92ee6b801b089;hp=72c719b117b5b2d444a4723a4a32238ad9ab39d0;hb=30285c0d7edaeb05605ff620f8d8d6d09d91f5c2;hpb=82ba0c6c552997a376968218d5e558fe491dfc6b diff --git a/dgit-badcommit-fixup b/dgit-badcommit-fixup index 72c719b1..32d5f0b1 100755 --- a/dgit-badcommit-fixup +++ b/dgit-badcommit-fixup @@ -244,11 +244,6 @@ if (!@updates) { open U, "|git update-ref -m 'dgit bad commit fixup' --stdin" or die $!; -if ($real && $bare eq 'false') { - print "detaching your HEAD\n" or die $!; - runcmd 'git checkout --detach'; -} - for my $up (@updates) { my ($ref, $old, $new, $nobackup) = @$up; my $otherref = $ref;