]> git.ipfire.org Git - thirdparty/git.git/commit - http-fetch.c
Let 'git http-fetch -h' show usage outside any git repository
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 9 Nov 2009 15:04:59 +0000 (09:04 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Nov 2009 19:11:21 +0000 (11:11 -0800)
commit616f86d71325da1ce692f8e878fe066758f88554
tree2004fc5b276ad315350bb01f879b6869c16deede
parent1a507b9cf75bcb2de2391c584539e0ff202549bf
Let 'git http-fetch -h' show usage outside any git repository

Delay search for a git directory until option parsing has finished.
None of the functions used in option parsing look for or read any
files other than stdin, so this is safe.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-fetch.c