Skip to content

Commit 22e91ba

Browse files
committed
Merge branch 'lr/git-run-setup-gently'
* lr/git-run-setup-gently: git.c: treat RUN_SETUP_GENTLY and RUN_SETUP as mutually exclusive
2 parents 3a9dae7 + 27bd38d commit 22e91ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv)
290290
if (!help) {
291291
if (p->option & RUN_SETUP)
292292
prefix = setup_git_directory();
293-
if (p->option & RUN_SETUP_GENTLY) {
293+
else if (p->option & RUN_SETUP_GENTLY) {
294294
int nongit_ok;
295295
prefix = setup_git_directory_gently(&nongit_ok);
296296
}

0 commit comments

Comments
 (0)