Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Errors when updating an old git.git repository

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:46

Hannu Koivisto [off-list ref] writes:
Johannes Schindelin [off-list ref] writes:
...
quoted
So, you _asked_ git to fetch these three branches!
Well, that's true from a technical standpoint, but I didn't add
those lines to .git/remotes/origin, git did when I cloned the
repository.  When one updates tracking branches and a branch has
been deleted in the remote repository, I think it wouldn't be
insane to expect git also to remove the line (if not the actual
branch).  If that is not desired, I'd rather the message wasn't an
error but something along the lines of "note: remote branch jc/bind
no longer exists, please update .git/remotes/origin".  It's bit odd
to get errors in a situation that (given the assumption) isn't
erroneous.
I would be a bit reluctant to remove tracking automagically, but
I fully agree that a comment like that would be needed.

Patches?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help