branch -m: handle no arg properly
authorTay Ray Chuan <rctay89@gmail.com>
Wed, 2 Nov 2011 16:17:12 +0000 (00:17 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Nov 2011 19:35:37 +0000 (12:35 -0700)
Modify the option parsing heuristic to handle all -m (rename) cases,
including the no-arg case.

Previously, this "fell through" to the (argc <= 2) case and caused
segfault.

Reported-by: Stefan Näwe <stefan.naewe@atlas-elektronik.com>
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found