-
Notifications
You must be signed in to change notification settings - Fork 130
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
worktree: teach "add" to ignore submodule.recurse config #430
worktree: teach "add" to ignore submodule.recurse config #430
Conversation
"worktree add" internally calls "reset --hard", but if submodule.recurse is set, reset tries to recurse into initialized submodules, which makes start_command try to cd into non-existing submodule paths and die. Fix that by making sure that the call to reset in "worktree add" does not recurse. Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Welcome to GitGitGadgetHi @phil-blain, and welcome to GitGitGadget, the GitHub App to send patch series to the Git mailing list from GitHub Pull Requests. Please make sure that this Pull Request has a good description, as it will be used as cover letter. Also, it is a good idea to review the commit messages one last time, as the Git project expects them in a quite specific form:
It is in general a good idea to await the automated test ("Checks") in this Pull Request before contributing the patches, e.g. to avoid trivial issues such as unportable code. Contributing the patchesBefore you can contribute the patches, your GitHub username needs to be added to the list of permitted users. Any already-permitted user can do that, by adding a PR comment of the form Once on the list of permitted usernames, you can contribute the patches to the Git mailing list by adding a PR comment After you submit, GitGitGadget will respond with another comment that contains the link to the cover letter mail in the Git mailing list archive. Please make sure to monitor the discussion in that thread and to address comments and suggestions. If you want to see what email(s) would be sent for a submit request, add a PR comment If you do not want to subscribe to the Git mailing list just to be able to respond to a mail, you can download the mbox ("raw") file corresponding to the mail you want to reply to from the Git mailing list. If you use GMail, you can upload that raw mbox file via: curl -g --user "<EMailAddress>:<Password>" --url "imaps://imap.gmail.com/INBOX" -T /path/to/raw.txt |
/allow |
User phil-blain is now allowed to use GitGitGadget. WARNING: phil-blain has no public email address set on GitHub |
thanks @dscho ! |
/submit |
Submitted as pull.430.git.1572196585.gitgitgadget@gmail.com WARNING: phil-blain has no public email address set on GitHub |
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
@phil-blain the custom on the Git mailing list is to reply to reviewer comments, either dismissing their suggestion (backed up by good arguments, of course) or agreeing with them, and (if needed) amending the patch, force-pushing, and sending another iteration via I tend to agree with Junio, this would make for a good patch to fix your compile problem, but since it is not even in code touched by this here PR, I would suggest to open another Pull Request. |
I will! I’m just learning to use |
On the Git mailing list, Philippe Blain wrote (reply to this):
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
This branch is now known as |
This patch series was integrated into pu via git@bea3667. |
This patch series was integrated into pu via git@2f5bc80. |
This patch series was integrated into pu via git@1054950. |
This patch series was integrated into pu via git@dbfeddb. |
This patch series was integrated into pu via git@161431e. |
This patch series was integrated into pu via git@5637b78. |
This patch series was integrated into pu via git@b8655bb. |
This patch series was integrated into pu via git@80e4bbd. |
This patch series was integrated into pu via git@90b8030. |
This patch series was integrated into pu via git@f318d8b. |
This patch series was integrated into pu via git@cbbc788. |
This patch series was integrated into next via git@cdfb064. |
This patch series was integrated into pu via git@b6d1189. |
This patch series was integrated into pu via git@aa8a208. |
This patch series was integrated into pu via git@dd75d42. |
This patch series was integrated into pu via git@a8678ce. |
This patch series was integrated into pu via git@fb7f171. |
This patch series was integrated into pu via git@05fc647. |
This patch series was integrated into next via git@05fc647. |
This patch series was integrated into master via git@05fc647. |
Closed via 05fc647. |
"worktree add" internally calls "reset --hard", but if submodule.recurse is set, reset tries to recurse into initialized submodules, which makes start_command try to cd into non-existing submodule paths and die.
Fix that by making sure that the call to reset in "worktree add" does not recurse.
Some remarks:
This patch is based on maint
The 2 Travis CI macOS builds fail (they also fail on maint) with the message:
I'm on OS X 10.11.6 (Apple clang-800.0.42.1) and I get a warning compiling
builtin/merge.c
:This makes me unable to build with DEVELOPER=1.