projects
/
platform
/
upstream
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 2.24.1
[platform/upstream/git.git]
/
parse-options.c
diff --git
a/parse-options.c
b/parse-options.c
index
87b26a1
..
b42f54d
100644
(file)
--- a/
parse-options.c
+++ b/
parse-options.c
@@
-780,7
+780,8
@@
int parse_options_step(struct parse_opt_ctx_t *ctx,
continue;
}
- if (!arg[2]) { /* "--" */
+ if (!arg[2] /* "--" */ ||
+ !strcmp(arg + 2, "end-of-options")) {
if (!(ctx->flags & PARSE_OPT_KEEP_DASHDASH)) {
ctx->argc--;
ctx->argv++;