diff --git a/subcmds/init.py b/subcmds/init.py index 445178775..e53d0338b 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -353,7 +353,7 @@ def Execute(self, opt, args): wrapper = Wrapper() try: remote_ref, rev = wrapper.check_repo_rev( - rp.gitdir, + rp.worktree, opt.repo_rev, repo_verify=opt.repo_verify, quiet=opt.quiet,