From: Junio C Hamano Date: Fri, 20 Mar 2009 21:30:00 +0000 (-0700) Subject: Merge branch 'xx/db-refspec-vs-js-remote' X-Git-Tag: v1.6.3-rc0~123 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8e50ada5530c6bc937c5a7c10130b2b09f1389f2;p=git-core%2Fgit.git Merge branch 'xx/db-refspec-vs-js-remote' * xx/db-refspec-vs-js-remote: Support '*' in the middle of a refspec Keep '*' in pattern refspecs Use the matching function to generate the match results Use a single function to match names against patterns Make clone parse the default refspec with the normal code --- 8e50ada5530c6bc937c5a7c10130b2b09f1389f2 diff --cc builtin-clone.c index 7fbfbf973,b385b9782..0031b5f51 --- a/builtin-clone.c +++ b/builtin-clone.c @@@ -328,9 -341,9 +328,10 @@@ int cmd_clone(int argc, const char **ar struct strbuf branch_top = STRBUF_INIT, reflog_msg = STRBUF_INIT; struct transport *transport = NULL; char *src_ref_prefix = "refs/heads/"; + int err = 0; - struct refspec refspec; + struct refspec *refspec; + const char *fetch_pattern; junk_pid = getpid();