summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subcmds/init.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index f46babfe..af3685a0 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -521,7 +521,7 @@ to update the working directory files.
521 rp.gitdir, opt.repo_rev, repo_verify=opt.repo_verify, quiet=opt.quiet) 521 rp.gitdir, opt.repo_rev, repo_verify=opt.repo_verify, quiet=opt.quiet)
522 branch = rp.GetBranch('default') 522 branch = rp.GetBranch('default')
523 branch.merge = remote_ref 523 branch.merge = remote_ref
524 rp.work_git.update_ref('refs/heads/default', rev) 524 rp.work_git.reset('--hard', rev)
525 branch.Save() 525 branch.Save()
526 526
527 if opt.worktree: 527 if opt.worktree: