Skip to content

Support for special branch names in git submodule declarations #556

Closed as not planned

Description

@Byron

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions