FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added support for separeted git dir. by niyaton · Pull Request #99 · gitpython-developers/GitPython · GitHub

Repository navigation

Added support for separeted git dir. - #99

Merged
Byron merged 1 commit into
gitpython-developers:0.3from
niyaton:separate-git-dir
Nov 19, 2014
Merged

Byron merged 1 commit into
gitpython-developers:0.3from
niyaton:separate-git-dir

Conversation

niyaton commented Feb 27, 2013

Copy link
Copy Markdown
Contributor

Git-init command supported --separate-git-dir option.
The repository initialized with this option manage the repository by using .git file instead of the .git directory.

I added support for these type repositories.

Copy link
Copy Markdown

I tried this and it work great when doing r=git.Repo().

It seems to not work for submodules: git.Repo().submodules[0].module_exists() still reports false if it uses a .git file. That is the case if git submodule update was first done using modern versions of command line git (at least 1.8.3.1 but likely earlier versions as well).

Byron added this to the v0.3.3 milestone Nov 19, 2014
Byron merged commit 53b65e0 into gitpython-developers:0.3 Nov 19, 2014

Byron commented Nov 19, 2014

Copy link
Copy Markdown
Member

Thank you !
I had to make a minor for read_gitfile to actually work, and a test-case is yet to be written as well. Therefore I could only verify that it doesn't fail/break existing functionality.

@jmlundberg The submodule implementation has plenty of issues right now, the one you mention might be related to the 'new' way of storing submodules, which is not yet supported by the submodule implementation. These issues will be handled separately.

Byron mentioned this pull request Nov 19, 2014
govtech42 pushed a commit to mirror81/GitPython that referenced this pull request Jul 25, 2026
…dependabot

Have Dependabot update smmap submodule dependency
govtech42 pushed a commit to mirror81/GitPython that referenced this pull request Jul 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL