From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <junkio@cox.net>
Subject: Re: Adding glob support to remotes
Date: Wed, 22 Nov 2006 14:41:00 +0000 [thread overview]
Message-ID: <200611221441.02459.andyparkins@gmail.com> (raw)
In-Reply-To: <7v7ixnskql.fsf@assigned-by-dhcp.cox.net>
On Wednesday 2006 November 22 12:56, Junio C Hamano wrote:
> > However, git-ls-remote needs the name of the remote repository (of
> > course), but that isn't directly available in git-parse-remote.sh.
>
> Is it really the case? I do not remember the details offhand,
> but I do not think canon_refs_list_for_fetch is the function you
> should be messing with to implement the remote."origin".fetch
> stuff. It should be get_remote_default_refs_for_fetch(). The
> function returns the list based on which remote, so it surely
> knows which remote the caller is talking about.
The problem is that canon_refs_list_for_fetch bombs out too early because "*"
is not an acceptable name for a ref.
> However, I would recommend against actually running ls-remote to
> help "git-fetch" inside git-parse-remote.sh. I think you should
> run ls-remote upfront early in git-fetch because there are at
> least two other parts in git-fetch that wants the same ls-remote
> output:
Okay. That's what I'll do. It means altering git-check-ref-format to prevent
the early bomb out. Perhaps I should move this check to somewhere after I've
done the reflist expansion?
> (1) dumb protocols currently cannot deal with a remote that has
I'm not sure I've understood this point. I shall look at git-fetch.sh more
closely to try and address this though.
> (2) when doing a fetch with tracking branches (which is what
Accepted.
Andy
--
Dr Andy Parkins, M Eng (hons), MIEE
next prev parent reply other threads:[~2006-11-22 14:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-22 9:04 Adding glob support to remotes Andy Parkins
2006-11-22 12:56 ` Junio C Hamano
2006-11-22 14:41 ` Andy Parkins [this message]
2006-11-22 20:50 ` Junio C Hamano
2006-11-23 8:44 ` Andy Parkins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200611221441.02459.andyparkins@gmail.com \
--to=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.