Skip to content

Preserve .git file correctly - #829

Merged
sdboyer merged 1 commit into
Masterminds:masterfrom
RaduBerinde:fix-git-file-issue
May 24, 2017
Merged

Preserve .git file correctly#829
sdboyer merged 1 commit into
Masterminds:masterfrom
RaduBerinde:fix-git-file-issue

Conversation

@RaduBerinde

@RaduBerinde RaduBerinde commented May 18, 2017

Copy link
Copy Markdown
Contributor

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

dt commented May 24, 2017

Copy link
Copy Markdown

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

@sdboyer

sdboyer commented May 24, 2017

Copy link
Copy Markdown
Member

@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