* fetch failure from git2.kernel.org?
@ 2007-04-22 10:03 Randal L. Schwartz
2007-04-22 12:53 ` Alex Riesen
2007-04-22 17:53 ` Linus Torvalds
0 siblings, 2 replies; 6+ messages in thread
From: Randal L. Schwartz @ 2007-04-22 10:03 UTC (permalink / raw)
To: git
is this known? transient?
$ git-fetch
warning: no common commits
remote: Generating pack...
remote: Done counting 0 objects.
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
fatal: Fetch failure: git://git2.kernel.org/pub/scm/git/git.git
$
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: fetch failure from git2.kernel.org?
2007-04-22 10:03 fetch failure from git2.kernel.org? Randal L. Schwartz
@ 2007-04-22 12:53 ` Alex Riesen
2007-04-22 12:56 ` Randal L. Schwartz
2007-04-22 14:20 ` Petr Baudis
2007-04-22 17:53 ` Linus Torvalds
1 sibling, 2 replies; 6+ messages in thread
From: Alex Riesen @ 2007-04-22 12:53 UTC (permalink / raw)
To: git; +Cc: Randal L. Schwartz
Randal L. Schwartz, Sun, Apr 22, 2007 12:03:45 +0200:
>
> is this known? transient?
>
> $ git-fetch
> warning: no common commits
> remote: Generating pack...
> remote: Done counting 0 objects.
> remote: aborting due to possible repository corruption on the remote side.
> fatal: protocol error: bad pack header
> fatal: Fetch failure: git://git2.kernel.org/pub/scm/git/git.git
> $
>
Confirm this. BTW, git1 and git2 point to the same 140.211.167.38
(poseidon.kernel.org). It used to be different addresses
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: fetch failure from git2.kernel.org?
2007-04-22 12:53 ` Alex Riesen
@ 2007-04-22 12:56 ` Randal L. Schwartz
2007-04-22 14:20 ` Petr Baudis
1 sibling, 0 replies; 6+ messages in thread
From: Randal L. Schwartz @ 2007-04-22 12:56 UTC (permalink / raw)
To: Alex Riesen; +Cc: git
>>>>> "Alex" == Alex Riesen <raa.lkml@gmail.com> writes:
Alex> Confirm this. BTW, git1 and git2 point to the same 140.211.167.38
Alex> (poseidon.kernel.org). It used to be different addresses
Ahh, that's why it didn't help to try changing it. :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: fetch failure from git2.kernel.org?
2007-04-22 12:53 ` Alex Riesen
2007-04-22 12:56 ` Randal L. Schwartz
@ 2007-04-22 14:20 ` Petr Baudis
1 sibling, 0 replies; 6+ messages in thread
From: Petr Baudis @ 2007-04-22 14:20 UTC (permalink / raw)
To: Alex Riesen; +Cc: git, Randal L. Schwartz
On Sun, Apr 22, 2007 at 02:53:07PM CEST, Alex Riesen wrote:
> Randal L. Schwartz, Sun, Apr 22, 2007 12:03:45 +0200:
> >
> > is this known? transient?
> >
> > $ git-fetch
> > warning: no common commits
This in itself is weird. :-)
> > remote: Generating pack...
> > remote: Done counting 0 objects.
> > remote: aborting due to possible repository corruption on the remote side.
> > fatal: protocol error: bad pack header
> > fatal: Fetch failure: git://git2.kernel.org/pub/scm/git/git.git
> > $
> >
>
> Confirm this. BTW, git1 and git2 point to the same 140.211.167.38
> (poseidon.kernel.org). It used to be different addresses
Curiously enough, I have hit no problems with fetching from the
repo.or.cz mirror (which is using several months old git version, if
that might matter).
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
-- Samuel Beckett
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: fetch failure from git2.kernel.org?
2007-04-22 10:03 fetch failure from git2.kernel.org? Randal L. Schwartz
2007-04-22 12:53 ` Alex Riesen
@ 2007-04-22 17:53 ` Linus Torvalds
2007-04-22 18:26 ` Junio C Hamano
1 sibling, 1 reply; 6+ messages in thread
From: Linus Torvalds @ 2007-04-22 17:53 UTC (permalink / raw)
To: Randal L. Schwartz; +Cc: git
On Sun, 22 Apr 2007, Randal L. Schwartz wrote:
>
> is this known? transient?
Junio seems to have tightened his permissions on kernel.org, and as a
result the most recent pack is unreadable by anybody but him (I'm not sure
if such private files even get mirrored out - but even if they do, they
will get mirrored out with the same tight permissions and won't be
readable).
Linus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: fetch failure from git2.kernel.org?
2007-04-22 17:53 ` Linus Torvalds
@ 2007-04-22 18:26 ` Junio C Hamano
0 siblings, 0 replies; 6+ messages in thread
From: Junio C Hamano @ 2007-04-22 18:26 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Randal L. Schwartz, git
Linus Torvalds <torvalds@linux-foundation.org> writes:
> On Sun, 22 Apr 2007, Randal L. Schwartz wrote:
>>
>> is this known? transient?
>
> Junio seems to have tightened his permissions on kernel.org, and as a
> result the most recent pack is unreadable by anybody but him (I'm not sure
> if such private files even get mirrored out - but even if they do, they
> will get mirrored out with the same tight permissions and won't be
> readable).
That's not *me* per-se, it's Nico ;-).
Anybody who runs the new pack-objects that has been cooking in
'next' would get this.
I think this patch minimally fixes it, but some existing tests
(e.g. t5300) assume that pack/idx are writable which makes them
break.
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index c72e07a..4eb88e8 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -1783,11 +1783,17 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix)
write_index_file(last_obj_offset, object_list_sha1);
snprintf(tmpname, sizeof(tmpname), "%s-%s.pack",
base_name, sha1_to_hex(object_list_sha1));
+ if (chmod(pack_tmp_name, 0444))
+ die("unable to make temporary pack file readable: %s",
+ strerror(errno));
if (rename(pack_tmp_name, tmpname))
die("unable to rename temporary pack file: %s",
strerror(errno));
snprintf(tmpname, sizeof(tmpname), "%s-%s.idx",
base_name, sha1_to_hex(object_list_sha1));
+ if (chmod(idx_tmp_name, 0444))
+ die("unable to make temporary index file readable: %s",
+ strerror(errno));
if (rename(idx_tmp_name, tmpname))
die("unable to rename temporary index file: %s",
strerror(errno));
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-04-22 18:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-22 10:03 fetch failure from git2.kernel.org? Randal L. Schwartz
2007-04-22 12:53 ` Alex Riesen
2007-04-22 12:56 ` Randal L. Schwartz
2007-04-22 14:20 ` Petr Baudis
2007-04-22 17:53 ` Linus Torvalds
2007-04-22 18:26 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).