author | Christian Couder <chriscool@tuxfamily.org> | |
Sun, 18 Jan 2009 03:46:09 +0000 (04:46 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Jan 2009 06:37:41 +0000 (22:37 -0800) | ||
commit | 3aed2fda6f8233895be0d1142c4c4b407fb692c3 | |
tree | e705444fffcd25bef47cdfef67a40830cf72de65 | tree | snapshot |
parent | bf474e2402e51843e8230c064da6ccfdf3a8ff54 | commit | diff |
builtin-fsck: fix off by one head count
According to the man page, if "git fsck" is passed one or more heads, it
should verify connectivity and validity of only objects reachable from the
heads it is passed.
However, since 5ac0a20 (Make builtin-fsck.c use parse_options.,
2007-10-15) the command behaved as if no heads were passed, when given
only one argument.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
According to the man page, if "git fsck" is passed one or more heads, it
should verify connectivity and validity of only objects reachable from the
heads it is passed.
However, since 5ac0a20 (Make builtin-fsck.c use parse_options.,
2007-10-15) the command behaved as if no heads were passed, when given
only one argument.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fsck.c | diff | blob | history |