-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Keep ".git" file in in --cleanDestinationDir #6261
base: master
Are you sure you want to change the base?
Conversation
Ignore files specifically called ".git" in order to preserve submodule information for Git post-1.7.8 (which seems to be the point things changed from having an entire “.git” directory inside the submodule to having a “.git” _file_ pointing to a gitdir outside of the submodule) This should reproduce what I believe is the intended behaviour from gohugoio#3202 and fix the issue for pojebunny in gohugoio#4546 See gohugoio#3202 and gohugoio#4546
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
I don't currently use Hugo but I believe this PR still adds value for other users attempting to use submodules with recent versions of Git. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
Same issue here. The .git file should be preserved imo |
I don't remember any of the context around why I opened this. However...
edit - I see. This refers to a |
Exactly, it leaves the dirs intact but clears .git, .gitignore, etc. |
I didn't know |
spf13/fsync#10 All . files right? There's a bunch of them (i.e. .gitignore, .firebaserc) |
Honestly, I don't remember all the details of this. But I think it was related to me wanting to pull in a remote theme without committing it in its entirety to my Hugo repo. That seemed (at the time at least) like a sensible thing to do because it meant updating the theme was just a change of reference, and I think the way I achieved that was by having a It was a very, very early exploration into rudimentary CI/CD for me at the time. It may no longer make sense, and I don't use Hugo anymore, which is why I just let the PR expire at the second time of asking instead of being an ass and trying to force a change through that I didn't need anymore. |
Ignore files specifically called ".git" in order to preserve submodule information for Git post-1.7.8 (which seems to be the point things changed from having an entire “.git” directory inside the submodule to having a “.git” file pointing to a gitdir outside of the submodule)
This should restore what I believe was the intended behaviour of #3202 and fix the issue for pojebunny in #4546
See #3202 and #4546