]> git.ipfire.org Git - thirdparty/git.git/blobdiff - sequencer.c
Merge branch 'js/t1450-making-it-writable-does-not-need-full-posixperm'
[thirdparty/git.git] / sequencer.c
index e314af4d60a1dcb13f6ea215c80b219742275c3d..6abd72160ccd46791d5a262021804e07ab9ea37f 100644 (file)
@@ -4223,6 +4223,8 @@ static int run_git_checkout(struct repository *r, struct replay_opts *opts,
 
        cmd.git_cmd = 1;
 
+       if (startup_info->original_cwd)
+               cmd.dir = startup_info->original_cwd;
        strvec_push(&cmd.args, "checkout");
        strvec_push(&cmd.args, commit);
        strvec_pushf(&cmd.env_array, GIT_REFLOG_ACTION "=%s", action);