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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve .git file correctly #829

Merged
merged 1 commit into from
May 24, 2017

Conversation

RaduBerinde
Copy link
Contributor

@RaduBerinde RaduBerinde commented May 18, 2017

When vendor is a submodule, .git is a file (not a directory). When /tmp is on a
different filesystem, we try to copy it as a directory which leaves an empty
.git directory instead of the file. This change fixes this by copying it as a
file in this case.

Fixes #828.


This change is Reviewable

When vendor is a submodule, .git is a file (not a directory). When /tmp is on a
different filesystem, we try to copy it as a directory which leaves an empty
.git directory instead of the file. This change fixes this by copying it as a
file in this case.

Fixes Masterminds#828.
@dt
Copy link

dt commented May 24, 2017

@sdboyer did you get a chance to look at this in between all the dep work?

@sdboyer
Copy link
Member

sdboyer commented May 24, 2017

@dt hah, i didn't even see it, thanks for the ping.

I totally never knew that submodules did this. Huh. Since 1.7.8, it seems...I wonder how I missed it for so long.

Anyway, LGTM - thanks!

@sdboyer sdboyer merged commit 4b407b3 into Masterminds:master May 24, 2017
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.

glide screws up .git file when using a submodule
3 participants