Skip to content

Support for special branch names in git submodule declarations #556

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

Open
Byron opened this issue Dec 8, 2016 · 0 comments
Open

Support for special branch names in git submodule declarations #556

Byron opened this issue Dec 8, 2016 · 0 comments

Comments

@Byron
Copy link
Member

Byron commented Dec 8, 2016

Git now supports the branch field in submodule declarations, and adds a twist that is not handled by GitPython.

https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/2.10.2.txt
* Recent git allows submodule.<name>.branch to use a special token
"." instead of the branch name; the documentation has been updated
to describe it.

https://git-scm.com/docs/gitmodules
submodule.<name>.branch
A remote branch name for tracking updates in the upstream submodule. If the option is not specified, it defaults to master. A special value of . is used to indicate that the name of the branch in the submodule should be the same name as the current branch in the current repository. See the --remote documentation in git-submodule[1] for details.

When this issue is resolved, GitPython can handle special names and behaves similarly to cgit when encountering them.

Related to #545

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant