Skip to content

GitPython in submodules #155

@remram44

Description

@remram44

Using GitPython in a submodule doesn't work.

Python 2.7.6, GitPython 0.3.2 RC1 on Windows.

I have a repository 'a' with a submodule 'b'. I do:

>>> repo = git.Repo('C:\a\b')
>>> repo
(git.Repo "C:\a\.git")
>>> # (should be "C:\a\.git\modules\b")
>>> repo.heads
(... a's branches...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions