summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@suse.com>2014-04-22 00:47:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-04-22 19:37:02 (GMT)
commit27bd38d4e5a44da233a9e7d01c6a518aba355297 (patch)
treedb3caab918a29c5401383081b8e842ecef31512f /git.c
parent0bc85abb7aa9b24b093253018801a0fb43d01122 (diff)
downloadgit-27bd38d4e5a44da233a9e7d01c6a518aba355297.zip
git-27bd38d4e5a44da233a9e7d01c6a518aba355297.tar.gz
git-27bd38d4e5a44da233a9e7d01c6a518aba355297.tar.bz2
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 <mcgrof@suse.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git.c b/git.c
index 7cf2953..32f4f6c 100644
--- a/git.c
+++ b/git.c
@@ -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);
}