diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2019-10-21 10:18:25 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2019-10-21 10:18:25 +0200 |
commit | 17161e61761c5a45c0ce4cbab86a7629994e700d (patch) | |
tree | b11da31f386042a3c68eb5cde59547b691a87e26 /dev-vcs/git/files | |
parent | dev-vcs/git: Synced live ebuilds (diff) | |
download | gentoo-17161e61761c5a45c0ce4cbab86a7629994e700d.tar.gz gentoo-17161e61761c5a45c0ce4cbab86a7629994e700d.tar.bz2 gentoo-17161e61761c5a45c0ce4cbab86a7629994e700d.zip |
dev-vcs/git: Removed old
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'dev-vcs/git/files')
-rw-r--r-- | dev-vcs/git/files/git-2.21.0-quiet-submodules.patch | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/dev-vcs/git/files/git-2.21.0-quiet-submodules.patch b/dev-vcs/git/files/git-2.21.0-quiet-submodules.patch deleted file mode 100644 index adb0dfd582a1..000000000000 --- a/dev-vcs/git/files/git-2.21.0-quiet-submodules.patch +++ /dev/null @@ -1,61 +0,0 @@ -From git-owner@vger.kernel.org Wed Apr 10 11:18:40 2019 -Date: 10 Apr 2019 18:18:35 +0700 -Message-ID: <20190410111834.GA25638@ash> -From: "Duy Nguyen" <pclouds@gmail.com> -Sender: git-owner@vger.kernel.org -Subject: Re: regression AGAIN in output of git-pull --rebase --recurse-submodules=yes --quiet -References: <robbat2-20180120T054223-685328376Z@orbis-terrarum.net> - <robbat2-20190410T062730-540884809Z@orbis-terrarum.net> -List-ID: <git.vger.kernel.org> - -... - -If you run this with GIT_TRACE=1, you can see that --quiet is passed -to submodule--helper correctly. - -trace: built-in: git submodule--helper foreach --quiet git pull --quiet origin master - -The problem here is the option parser of this command would try to -parse all options, so it considers both --quiet the same thing and are -to tell "submodule--foreach" to be quiet, the second --quiet is not -part of the "git pull" command anymore. - -So the fix would be to pass "--" to stop option parsing. -submodule--helper should not parse options it does not understand -anyway. Something like this should work. - --- 8< -- -diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c -index 6bcc4f1bd7..6394222628 100644 ---- a/builtin/submodule--helper.c -+++ b/builtin/submodule--helper.c -@@ -571,7 +571,7 @@ static int module_foreach(int argc, const char **argv, const char *prefix) - }; - - argc = parse_options(argc, argv, prefix, module_foreach_options, -- git_submodule_helper_usage, PARSE_OPT_KEEP_UNKNOWN); -+ git_submodule_helper_usage, 0); - - if (module_list_compute(0, NULL, prefix, &pathspec, &list) < 0) - return 1; -diff --git a/git-submodule.sh b/git-submodule.sh -index 2c0fb6d723..a967b2890d 100755 ---- a/git-submodule.sh -+++ b/git-submodule.sh -@@ -346,7 +346,7 @@ cmd_foreach() - shift - done - -- git ${wt_prefix:+-C "$wt_prefix"} ${prefix:+--super-prefix "$prefix"} submodule--helper foreach ${GIT_QUIET:+--quiet} ${recursive:+--recursive} "$@" -+ git ${wt_prefix:+-C "$wt_prefix"} ${prefix:+--super-prefix "$prefix"} submodule--helper foreach ${GIT_QUIET:+--quiet} ${recursive:+--recursive} -- "$@" - } - - # --- 8< -- - -I'm a bit reluctant to follow up with a proper patch because I can't -digest the t5572-submodule-pull.sh tests. And we definitely need to -add a test case about --quiet to make sure it won't happen again. --- -Duy - |