Code

git-fetch: do not fail when remote branch disappears
authorJunio C Hamano <gitster@pobox.com>
Sat, 27 Oct 2007 06:09:48 +0000 (23:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Oct 2007 21:06:39 +0000 (14:06 -0700)
commit9ad7c5ae8ae4625bfe32d910b0b480cfea9819e0
tree8a838ed84b2cac5f66e0adc5d084d233f90c1ca9
parent071a8877662974f588dfc0b1ac7df2764b7e0337
git-fetch: do not fail when remote branch disappears

When the branch named with branch.$name.merge is not covered by
the fetch configuration for the remote repository named with
branch.$name.remote, we automatically add that branch to the set
of branches to be fetched.  However, if the remote repository
does not have that branch (e.g. it used to exist, but got
removed), this is not a reason to fail the git-fetch itself.

The situation however will be noticed if git-fetch was called by
git-pull, as the resulting FETCH_HEAD would not have any entry
that is marked for merging.

Acked-By: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c
remote.c
remote.h