summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/checkout_op.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/checkout_op.tcl b/lib/checkout_op.tcl
index 0571115..8c42ca8 100644
--- a/lib/checkout_op.tcl
+++ b/lib/checkout_op.tcl
@@ -201,6 +201,7 @@ method _update_ref {} {
# The current branch is actually newer.
#
set new $cur
+ set new_hash $cur
} else {
_error $this "Branch '$newbranch' already exists.\n\nIt cannot fast-forward to $new_expr.\nA merge is required."
return 0