cmd_fetch_pack(): handle non-option arguments outside of the loop
commit4cc00fcf5daf63648b7fd9382ca3e02033a0e1ec
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 21 May 2012 07:59:57 +0000 (21 09:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 May 2012 19:57:19 +0000 (22 12:57 -0700)
tree0386e1cab40b41fedd741739ca7ed27cdca41aad
parent9d19c6ea52755edec9b8e6d5b838b712fc7e97f6
cmd_fetch_pack(): handle non-option arguments outside of the loop

This makes it more obvious that the code is always executed unless
there is an error, and that the first initialization of nr_heads is
unnecessary.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch-pack.c