Skip to content

Commit

Permalink
git.c: treat RUN_SETUP_GENTLY and RUN_SETUP as mutually exclusive
Browse files Browse the repository at this point in the history
This saves us a few branches when RUN_SETUP is set up.

Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Luis R. Rodriguez authored and Junio C Hamano committed Apr 22, 2014
1 parent 0bc85ab commit 27bd38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static int run_builtin(struct cmd_struct *p, int argc, const char **argv)
if (!help) {
if (p->option & RUN_SETUP)
prefix = setup_git_directory();
if (p->option & RUN_SETUP_GENTLY) {
else if (p->option & RUN_SETUP_GENTLY) {
int nongit_ok;
prefix = setup_git_directory_gently(&nongit_ok);
}
Expand Down

0 comments on commit 27bd38d

Please sign in to comment.