author | Brian Gernhardt <benji@silverinsanity.com> | |
Fri, 22 Dec 2006 13:56:25 +0000 (08:56 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 23 Dec 2006 07:17:20 +0000 (23:17 -0800) | ||
commit | c321f00d09f56dcf2f149757a2a337f3732f3097 | |
tree | 8c510e21b9456ddb49d054490705ba4e895b47fa | tree | snapshot |
parent | 4b1552238ec3b8b711f60b2b65265a751a40f5ff | commit | diff |
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>
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 | diff | blob | history |