X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=remote.c;h=afbba47460c0204721d61800033ed0a9f93f92bc;hb=7e7db5e4520388d3a6f1efbe2f7a29d43bd06a2b;hp=9f0c6ef8f5797b09fc4e63fe87a1221f38d22ce5;hpb=0c72cead8435b2865efc884060bd0bd49313cbd5;p=git.git diff --git a/remote.c b/remote.c index 9f0c6ef8f..afbba4746 100644 --- a/remote.c +++ b/remote.c @@ -478,7 +478,7 @@ static void read_config(void) unsigned char sha1[20]; const char *head_ref; int flag; - if (default_remote_name) // did this already + if (default_remote_name) /* did this already */ return; default_remote_name = xstrdup("origin"); current_branch = NULL; @@ -659,10 +659,9 @@ static struct refspec *parse_refspec_internal(int nr_refspec, const char **refsp int valid_fetch_refspec(const char *fetch_refspec_str) { - const char *fetch_refspec[] = { fetch_refspec_str }; struct refspec *refspec; - refspec = parse_refspec_internal(1, fetch_refspec, 1, 1); + refspec = parse_refspec_internal(1, &fetch_refspec_str, 1, 1); free_refspecs(refspec, 1); return !!refspec; }