Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

gps: pass correct arguments to "git clean" #2176

Merged
merged 1 commit into from
Jun 13, 2019
Merged

Conversation

kevinburke
Copy link
Collaborator

Previously, the "-x" in

git submodule foreach --recursive git clean -x

was being applied to the "git submodule" command not the "git clean"
command. git submodule foreach expects the inner command to be wrapped
in a single string, so pass git clean as a single string.

Verified this works as expected on the command line.

Fixes #2164.
Fixes #2168.

@kevinburke kevinburke requested a review from jmank88 as a code owner June 13, 2019 15:25
@googlebot
Copy link
Collaborator

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

1 similar comment
@googlebot
Copy link
Collaborator

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of all the commit author(s), set the cla label to yes (if enabled on your project), and then merge this pull request when appropriate.

ℹ️ Googlers: Go here for more info.

@googlebot
Copy link
Collaborator

☹️ Sorry, but only Googlers may change the label cla: yes.

@googlebot
Copy link
Collaborator

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

1 similar comment
@googlebot
Copy link
Collaborator

CLAs look good, thanks!

ℹ️ Googlers: Go here for more info.

Previously, the "-x" in

    git submodule foreach --recursive git clean -x

was being applied to the "git submodule" command not the "git clean"
command. git submodule foreach expects the inner command to be wrapped
in a single string, so pass git clean as a single string.

Verified this works as expected on the command line.

Originally submitted as #2164 by Daniele Rodina
<[email protected]>, re-submitted by me to amend the commit and
merge immediately.

Fixes #2164.
Fixes #2168.
kevinburke added a commit to kevinburke/vcs that referenced this pull request Jun 13, 2019
The command passed after a "git submodule foreach" should be invoked
as a single string, as it is on line 416 of this file. Otherwise "-x"
is treated as an argument to "foreach" and it errors. See
golang/dep#2176 for more details.
@kevinburke kevinburke merged commit 753b47d into master Jun 13, 2019
@kevinburke kevinburke deleted the geaaru-master branch June 13, 2019 18:58
acrmp added a commit to cloudfoundry/cli-workstation that referenced this pull request Jul 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"unexpected error while defensively cleaning up"
2 participants