Code

builtin-fetch: Don't segfault on "fetch +foo"
authorShawn O. Pearce <spearce@spearce.org>
Tue, 18 Sep 2007 08:54:48 +0000 (04:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Sep 2007 10:22:31 +0000 (03:22 -0700)
commit27e13374bf1864eb8aea44cca3afd81eedb007aa
tree3feeec80a9e1c61877427411ee9cd7a63e83eef0
parentf38395905b3d49bd68e0c01ca2310bf3387e1063
builtin-fetch: Don't segfault on "fetch +foo"

If we are fetching something and were configured to do a forced
fetch and have no local ref to store the fetched object into we
cannot mark the local ref as having a forced update.  Instead we
should just silently discard the + request.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
remote.c