Make refs support submodules #145

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
5 participants

ekohl commented Oct 7, 2012

In a submodule the git_dir is actually a file which contains the location of the actual git dir in the format gitdir: my/actual/dir.

I've already verified manually that it solves my issue (aanand/git-up#31) but I'm quite new to ruby and grit so I could use some advice on how to write the unit tests.

Make refs support submodules
In a submodule the git_dir is actually a file which contains the
location of the actual git dir in the format gitdir: my/actual/dir.

ekohl commented Oct 8, 2012

According to ktoso/maven-git-commit-id-plugin#19 (comment) this changed in 1.7.8. From https://lkml.org/lkml/2011/12/2/316:

  • When populating a new submodule directory with "git submodule init",
    the $GIT_DIR metainformation directory for submodules is created inside
    $GIT_DIR/modules// directory of the superproject and referenced
    via the gitfile mechanism. This is to make it possible to switch
    between commits in the superproject that has and does not have the
    submodule in the tree without re-cloning.

@bootstraponline bootstraponline referenced this pull request in gollum/gollum Oct 31, 2012

Closed

Submodule support #438

Would love to see this rolled in

👍 I ran into this problem trying to use git up within a submodule. See aanand/git-up#24 and aanand/git-up#31.

@aanand aanand referenced this pull request in aanand/git-up Apr 25, 2013

Closed

Git submodules support #44

+1

@aanand aanand referenced this pull request in aanand/git-up Jan 17, 2014

Open

.git of Submodule not followed #67

Collaborator

bkeepers commented Feb 3, 2014

Grit is no longer maintained. See #183 and check out libgit2/rugged.

@bkeepers bkeepers closed this Feb 3, 2014

@evandrocoan evandrocoan referenced this pull request in wbond/package_control Jun 16, 2017

Closed

Why ignore VCS-based packages accordingly to this message? #1233

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