Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change git-clean-flags to cleanup submodules #875

Merged
merged 1 commit into from Dec 29, 2018

Conversation

lox
Copy link
Contributor

@lox lox commented Dec 16, 2018

Turns out that a second -f is needed to force git clean to remove .git subdirectories.

From https://git-scm.com/docs/git-clean:

Git will refuse to delete directories with .git sub directory or file unless a second -f is given.

The big question here is whether this counts as a breaking change 馃 I am leaning towards no, as I think we thought that this was the behaviour of the existing flags, so I view this as fixing a bug.

Closes #865.

Turns out that a second -f is needed to force git clean to remove
.git subdirectories.
Copy link
Contributor

@toolmantim toolmantim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree that it's definitely how we thought it worked, and it's a bug fix for submodules.

I guess some people might have noticed they could put a git directory into a build directory some other way, and it wouldn't be cleaned up? But not having the extra f is going to trip people up, that had no idea. So I reckon let鈥檚 just ship it in a minor release.

@lox lox merged commit 7943201 into master Dec 29, 2018
@lox lox deleted the cleanup-submodules-in-git-clean branch December 29, 2018 20:32
@lox lox added the needs docs label Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No longer existing sub-module not properly cleaned up
3 participants