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 ca5737533847ee3d4d821fcf6eff7d2967e9b7bd..00da67d7ed6af8988d265ee039bbe0d62cfd45d9 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";
     }
     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 () {
 }
 
 sub cmd_update_vcs_git () {