fetch: don't try to update unfetched tracking refs
commit823c6d56a83f3eec657a94581c23c5b7682bdaf4
authorJohn Keeping <john@keeping.me.uk>
Mon, 27 May 2013 16:33:09 +0000 (27 17:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 May 2013 15:13:14 +0000 (28 08:13 -0700)
tree45474c59c4754cc19b203e61183c6a3982a1aa15
parentf269048754f3b835f4f7287c5a132714a059efce
fetch: don't try to update unfetched tracking refs

Since commit f269048 (fetch: opportunistically update tracking refs,
2013-05-11) we update tracking refs opportunistically when fetching
remote branches.  However, if there is a configured non-pattern refspec
that does not match any of the refspecs given on the command line then a
fatal error occurs.

Fix this by setting the "missing_ok" flag when calling get_fetch_map.

Test-added-by: Jeff King <peff@peff.net>
Signed-off-by: John Keeping <john@keeping.me.uk>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
t/t5510-fetch.sh