Keep "git --git-dir" from causing a bus error.
commitc321f00d09f56dcf2f149757a2a337f3732f3097
authorBrian Gernhardt <benji@silverinsanity.com>
Fri, 22 Dec 2006 13:56:25 +0000 (22 08:56 -0500)
committerJunio C Hamano <junkio@cox.net>
Sat, 23 Dec 2006 07:17:20 +0000 (22 23:17 -0800)
tree8c510e21b9456ddb49d054490705ba4e895b47fa
parent4b1552238ec3b8b711f60b2b65265a751a40f5ff
Keep "git --git-dir" from causing a bus error.

The option checking code for --git-dir had an off by 1 error that
would cause it to access uninitialized memory if it was the last
argument.  This causes it to display an error and display the usage
string instead.

Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git.c