summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-07-05 00:56:04 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-07-05 00:56:04 +0100
commite46e00b34f626b3a9508c40d4133f7ece1bb43cd (patch)
tree8aba96ac6447f56b55e61730840183dafd9124fc
parent61f92b326da0efea1cf4d3c263ef0e0b7cacfc25 (diff)
dgit: checkout: Do not leave detached HEAD!
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xdgit2
1 files changed, 1 insertions, 1 deletions
diff --git a/dgit b/dgit
index ca57375..00da67d 100755
--- 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 () {