summaryrefslogtreecommitdiff
path: root/builtin/remote.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-12-17 11:46:32 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-12-17 11:46:32 -0800
commit4d1826d1d96a4284ef268c6febeaa9fabfa75e9e (patch)
treec19c924f1072120694cf8bb9283f1334e619d94d /builtin/remote.c
parentMerge branch 'jk/t5000-gzip-simplify' (diff)
parentremote: fix status with branch...rebase=preserve (diff)
downloadtgif-4d1826d1d96a4284ef268c6febeaa9fabfa75e9e.tar.xz
Merge branch 'fc/trivial'
* fc/trivial: remote: fix status with branch...rebase=preserve fetch: add missing documentation t: trivial whitespace cleanups abspath: trivial style fix
Diffstat (limited to 'builtin/remote.c')
-rw-r--r--builtin/remote.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index f532f35457..119e9151ad 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -307,8 +307,13 @@ static int config_read_branches(const char *key, const char *value, void *cb)
space = strchr(value, ' ');
}
string_list_append(&info->merge, xstrdup(value));
- } else
- info->rebase = git_config_bool(orig_key, value);
+ } else {
+ int v = git_config_maybe_bool(orig_key, value);
+ if (v >= 0)
+ info->rebase = v;
+ else if (!strcmp(value, "preserve"))
+ info->rebase = 1;
+ }
}
return 0;
}