Submodules mirrors or .gitmodules change #37593
Labels
No Label
legacy module
Rendering & Cycles
legacy module
User Interface
legacy project
Cycles
legacy project
Documentation
legacy project
Infrastructure: blender.org
legacy project
Infrastructure: Blender Web Assets
legacy project
Infrastructure: Websites
legacy project
User Interface
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: infrastructure/blender-org#37593
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
How about the submodules, are they to be mirrored as well?
The way things are setup now (see .gitmodules) one using github needs to clone not only blender.git but all the other submodules (see my bf-committers email )
Alternatively we could update .gitmodules to use absolute paths instead of relative ones. The problem with absolute paths is that the protocol (git/http/https) get saved as well. Another option is to include .gitmodules in .gitignore, but that sounds as a bad practise.
The current workaround is to run the following commands before running git submodule update --init --recursive --remote:
Changed status to: 'Open'
Added subscribers: @brecht, @ideasman42, @Sergey, @dfelinto
Added subscriber: @FrnchFrgg
The fact that the protocol is saved with the full path is not a problem: you can use the url.xxxxx.insteadOf mechanism to replace the protocols. At the simplest level:
git config url.git@git.blender.org:.insteadOf git://git.blender.org
git config url.git@git.blender.org:.insteadOf http://git.blender.org
will make all fetches (pulls) or pushes go through the ssh+git protocol instead of the read-only ones, for git.blender.org.
Also, urls in .gitmodules are only used to populate .git/config at submodule --init time, you can change the latter values to whatever you want without any problem (and that avoids the need to somehow ignore changes in the .gitmodules files)
@FrnchFrgg what is your suggestion to the official fix/solution?
I updated the workaround in the description as per your suggestion. If that's an acceptable workaround I'm fine. I just think that official mirrors should 'just work', or at least we should move those instructions to the wiki
Added subscriber: @Blendify
@brecht I guess this can be closed too?
Changed status from 'Open' to: 'Archived'