Skip to content

Commit 27bd38d

Browse files
mcgrofgitster
authored andcommitted
git.c: treat RUN_SETUP_GENTLY and RUN_SETUP as mutually exclusive
This saves us a few branches when RUN_SETUP is set up. Signed-off-by: Luis R. Rodriguez <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0bc85ab commit 27bd38d

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)