git-up icon indicating copy to clipboard operation
git-up copied to clipboard

.git of Submodule not followed

Open Erhannis opened this issue 11 years ago • 10 comments

So, I have a repo with some submodules. I wanted to use git-up in one of the submodules, but rather than a .git folder, it had a .git FILE containing a relative path to the actual .git folder (like "../../.git/modules/SomeFolder/SubmoduleName"). Git itself seems to be ok with it, but git-up complains "Not a directory". Now, if I renamed the .git file and instead made a symbolic link to the relevant git folder, git-up worked fine. It SEEMS like maybe this shouldn't be too hard to fix, just to follow the link in the .git file if it isn't a directory.

Erhannis avatar Jan 17 '14 03:01 Erhannis

https://github.com/mojombo/grit/pull/145 :(

Maybe it's time to vendor Grit...

aanand avatar Jan 17 '14 11:01 aanand

The grit devs recommend https://github.com/libgit2/rugged

gausie avatar Feb 04 '14 13:02 gausie

Oh, interesting! If someone wants to take a crack at converting git-up to use rugged, that'd be incredible - I'm afraid I'm far too busy right now ;_;

aanand avatar Feb 04 '14 18:02 aanand

+1 for this issue.

Looks like Grit is no longer maintained so a migration to libgit2/rugged is eventually necessary.

galenandrew avatar Aug 29 '14 19:08 galenandrew

Just ran into this again. Maybe I'll give it a go.

gausie avatar Nov 27 '14 16:11 gausie

+1

foozmeat avatar Dec 17 '14 23:12 foozmeat

:+1: it would be awesome

captainju avatar Dec 23 '14 10:12 captainju

+1

cburgas avatar Jan 26 '15 10:01 cburgas

+1 :+1:

d4rkd0s avatar Jan 14 '16 16:01 d4rkd0s

I've switched to https://github.com/msiemens/PyGitUp

captainju avatar Jan 14 '16 16:01 captainju