From bd4aeefe33e63f613512604e47bfca7b2187697d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 3 Nov 2019 16:06:58 +0000 Subject: gentoo resync : 03.11.2019 --- .../git/files/git-2.21.0-quiet-submodules.patch | 61 ---------------------- 1 file changed, 61 deletions(-) delete mode 100644 dev-vcs/git/files/git-2.21.0-quiet-submodules.patch (limited to 'dev-vcs/git/files/git-2.21.0-quiet-submodules.patch') 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" -Sender: git-owner@vger.kernel.org -Subject: Re: regression AGAIN in output of git-pull --rebase --recurse-submodules=yes --quiet -References: - -List-ID: - -... - -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 - -- cgit v1.2.3