X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=remote.c;h=0e006804ef3cc190fa286c85e2de034a33791886;hb=caa87713bca77c441c09282aa5b18b179bcfa90d;hp=3fb0f99b29e7ffd927abf166cfa004c1937aaf60;hpb=4eb39e9bcccc54eb23af8a7e2676c63e5bf32866;p=git.git diff --git a/remote.c b/remote.c index 3fb0f99b2..0e006804e 100644 --- a/remote.c +++ b/remote.c @@ -220,11 +220,11 @@ static int handle_config(const char *key, const char *value) if (!prefixcmp(key, "branch.")) { name = key + 7; subkey = strrchr(name, '.'); - branch = make_branch(name, subkey - name); if (!subkey) return 0; if (!value) return 0; + branch = make_branch(name, subkey - name); if (!strcmp(subkey, ".remote")) { branch->remote_name = xstrdup(value); if (branch == current_branch)