-
Notifications
You must be signed in to change notification settings - Fork 26.7k
submodule--helper: fix initialization of warn_if_uninitialized #1258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/submit |
Submitted as pull.1258.git.git.1650781575173.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
The .warn_if_uninitialized member was introduced by 4830868 (git submodule update: have a dedicated helper for cloning, 2016-02-29) to submodule_update_clone struct and initialized to false. When c9911c9 (submodule--helper: teach update_data more options, 2022-03-15) moved it to update_data struct, it started to initialize it to true but this change was not explained in its log message. The member is set to true only when pathspec was given, and is used when a submodule that matched the pathspec is found uninitialized to give diagnostic message. "submodule update" without pathspec is supposed to iterate over all submodules (i.e. without pathspec limitation) and update only the initialized submodules, and finding uninitialized submodules during the iteration is a totally expected and normal thing that should not be warned. Signed-off-by: Orgad Shaneh <orgads@gmail.com>
/submit |
Submitted as pull.1258.v2.git.git.1650890741430.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, Orgad Shaneh wrote (reply to this):
|
Hi @orgads, you can avoid the duplicated message by using an empty PR description here on GitGitgadget :) |
Though for later iterations, v2, v3, etc, it is recommended to use the PR description to explain what has changed since the last iteration, see https://git-scm.com/docs/MyFirstContribution#responding-ggg |
Thank you. |
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
This branch is now known as |
This patch series was integrated into seen via ebb5e63. |
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
This patch series was integrated into seen via 3ee7beb. |
There was a status update in the "New Topics" section about the branch "git submodule update" without pathspec should silently skip an uninitialized submodule, but it started to become noisy by mistake. Will merge to 'next' and then to 'master'. source: <pull.1258.v2.git.git.1650890741430.gitgitgadget@gmail.com> |
This patch series was integrated into seen via b4526f0. |
On the Git mailing list, Glen Choo wrote (reply to this):
|
User |
On the Git mailing list, Glen Choo wrote (reply to this):
|
On the Git mailing list, Glen Choo wrote (reply to this):
|
On the Git mailing list, Glen Choo wrote (reply to this):
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
There was a status update in the "Graduated to 'master'" section about the branch "git submodule update" without pathspec should silently skip an uninitialized submodule, but it started to become noisy by mistake. This fixes a regression in 2.36 and is slate to go to 2.36.1 source: <pull.1258.v2.git.git.1650890741430.gitgitgadget@gmail.com> |
@dscho any idea why this PR does not have a |
Honestly, I have no idea... GitGitGadget probably has the wrong idea of the tip commit. When that happens, I kind of hope for the original contributors to notice and close the PR manually. @orgads can this be closed? |
Sure, thanks. |
cc: Glen Choo chooglen@google.com