1
0
mirror of https://github.com/git/git.git synced 2025-04-18 03:55:51 +00:00

[PATCH] Make sure we die if we don't get enough arguments.

Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Fredrik Kuivinen 2005-09-12 23:31:22 +02:00 committed by Junio C Hamano
parent 654291a2ac
commit 206e587cb8

@ -392,6 +392,9 @@ def usage():
# This strategy module figures out merge bases itself, so we only
# get heads.
if len(sys.argv) < 4:
usage()
for nextArg in xrange(1, len(sys.argv)):
if sys.argv[nextArg] == '--':
if len(sys.argv) != nextArg + 3: