Re: Errors when updating an old git.git repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, 26 Dec 2006, Hannu Koivisto wrote:

> "Lars Hjemli" <hjemli@xxxxxxxxx> writes:
> 
> > On 12/26/06, Hannu Koivisto <azure@xxxxxx> wrote:
> 
> > I guess you have some branch references in the file
> > .git/remotes/origin that shouldn't be there, so you can just remove
> > the lines that mention  'jc/bind', 'jc/bind-2' and 'gb/diffdelta' from
> > that file.
> 
> Thanks, but I don't need to fix the repository since a clean clone 
> works, I just wanted to report it so that git can be fixed, if possible.

Git works quite as expected here, so there is nothing to fix.

> error: no such remote ref refs/heads/jc/bind
> error: no such remote ref refs/heads/jc/bind-2
> error: no such remote ref refs/heads/gb/diffdelta

Since you said it is an older git repository, I guess that in your 
.git/remotes/origin are some lines like this:

	Pull: refs/heads/jc/bind:refs/heads/jc/bind

So, you _asked_ git to fetch these three branches! By not providing _any_ 
remote, you said: "look into .git/remotes/origin". And in that file you 
said: "fetch bind, bind-2 and diffdelta".

And git faithfully reports that it cannot fetch these branches (they are 
no longer there) and errors out.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]