You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This succeeds ok, although what is written to the .gitmodules is branch = origin/refs/heads/master
The submodule_path is 2 levels deep, like e.g. 'imports/module_a' or similar
I commit & push that change.
On my dev machine I clone the repo with the newly added submodule:
I believe that this code is responsible for resolving to full paths.
The submodule system in GitPython was written to extend the implementation that git provided. Back in those days, git would not support the branch keyword at all, so it would just be ignored. Now it is picked up, and might not be what the git-submodule implementation expects.
Nevertheless, origin/refs/heads/master is usually a none-existing and incorrect branch path, and I don't know how that came to be.
Not sure if this is a real issue, or a failure in my understanding, but anyway:
In an automation script, I clone a GitHub repo,
and
create_submodule
with the branch set to 'master'This succeeds ok, although what is written to the .gitmodules is branch = origin/refs/heads/master
The submodule_path is 2 levels deep, like e.g. 'imports/module_a' or similar
I commit & push that change.
On my dev machine I clone the repo with the newly added submodule:
The last command gets an error:
If I do it all manually using:
Then what gets written to .gitmodules is branch = master and on the submodule update there is no error, and master updates fine.
The text was updated successfully, but these errors were encountered: