Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'builtin')
-rw-r--r--builtin/bundle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/bundle.c b/builtin/bundle.c
index e80efce3a4..13309f2ea9 100644
--- a/builtin/bundle.c
+++ b/builtin/bundle.c
@@ -48,7 +48,7 @@ static int parse_options_cmd_bundle(int argc,
int newargc;
newargc = parse_options(argc, argv, NULL, options, usagestr,
PARSE_OPT_STOP_AT_NON_OPTION);
- if (argc < 1)
+ if (!newargc)
usage_with_options(usagestr, options);
*bundle_file = prefix_filename(prefix, argv[0]);
return newargc;