chiark / gitweb /
dgit: checkout: Do not leave detached HEAD!
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Jul 2018 23:56:04 +0000 (00:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Jul 2018 23:56:04 +0000 (00:56 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index ca57375..00da67d 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -4674,7 +4674,7 @@ sub cmd_checkout {
     }
     local $ENV{GIT_REFLOG_ACTION} = git_reflog_action_msg
         "dgit checkout $isuite";
-    runcmd (@git, qw(checkout), lref());
+    runcmd (@git, qw(checkout), lbranch());
 }
 
 sub cmd_update_vcs_git () {