From: Junio C Hamano <junkio@cox.net>
To: "Michael K. Edwards" <medwards.linux@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Sometimes "Failed to find remote refs" means "try git-fetch --no-tags"
Date: Tue, 14 Nov 2006 20:05:07 -0800 [thread overview]
Message-ID: <7vvelhs6bw.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <f2b55d220611141953t48d81ac5q4f48183ae79ba0a@mail.gmail.com> (Michael K. Edwards's message of "Tue, 14 Nov 2006 19:53:34 -0800")
"Michael K. Edwards" <medwards.linux@gmail.com> writes:
> Down inside git-ls-remote there is a die "Failed to find remote refs".
> This struck when I tried to fetch an http repository with a missing
> info/refs file. Using "git fetch --no-tags" succeeds because it
> doesn't have to call git-ls-remote at all. Does git-ls-remote have
> any way of knowing who is calling it so that it can print a
> context-appropriate error message? If not, is it worth adding some
> sort of "caller context" mechanism, perhaps at the boundary between
> porcelain and plumbing?
I think letting git-ls-remote know who called it makes sense for
better error reporting. I am all for it.
However "fetch --no-tags" from http upstream is a band-aid to
hide that the upstream repository has stale info/refs, and I do
not think we would want to encourage the band-aid. Rather, the
message should say "yell loudly at the repository owner" ;-).
Seriously, when people starts using packed-refs that will be in
v1.4.4 scheduled for tomorrow on the public site, I think the
best way to adjust the commit walker clients is to have them
download info/refs and start traversing from the objects listed
there, instead of downloading .git/refs/heads/$branch and
.git/refs/tags/$tag files as we currently do, so the band-aid
would become less useful.
next prev parent reply other threads:[~2006-11-15 4:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-15 3:53 Sometimes "Failed to find remote refs" means "try git-fetch --no-tags" Michael K. Edwards
2006-11-15 4:05 ` Junio C Hamano [this message]
2006-11-15 21:13 ` Horst H. von Brand
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=7vvelhs6bw.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=medwards.linux@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox