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>
This commit is contained in:
Luis R. Rodriguez 2014-04-21 17:47:56 -07:00 коммит произвёл Junio C Hamano
Родитель 0bc85abb7a
Коммит 27bd38d4e5
1 изменённых файлов: 1 добавлений и 1 удалений

2
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);
}