git-fetch: Don't trigger a bus error when given the refspec "tag"
commitf53423b0e09d0de9584f72ac298bdfdc9e886d73
authorKevin Ballard <kevin@sb.org>
Sat, 5 Apr 2008 18:28:53 +0000 (5 14:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 5 Apr 2008 23:31:45 +0000 (5 16:31 -0700)
tree7d3f9e54432d9912ee8669d48462c7ca68425b56
parent4ed4a347168d6714c6beca7d7702473229c9d8f1
git-fetch: Don't trigger a bus error when given the refspec "tag"

When git-fetch encounters the refspec "tag" it assumes that the next
argument will be a tag name. If there is no next argument, it should
die gracefully instead of erroring.

Signed-off-by: Kevin Ballard <kevin@sb.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c