-
Notifications
You must be signed in to change notification settings - Fork 534
submodules path in gitdir is wrong (was: Submodules not having any objects) #413
Comments
@Cromel Thank you for taking the time for filling this bug report! Could you post here a small code example showing what you're doing? |
@smola yes, no problem. For example such code doesn't print any commits in repo with submodules: ` path := "some repo with submodules"
|
@Cromel Using submodules in a repository requires initializing them (as in If it does not, you'd have to add the following:
Check |
@smola repo was cloned using |
@Cromel Right. It is indeed a bug. It should be Your proposed fix seems correct. Will you create a PR? |
@smola Created PR |
When you use submodule and get repository it doesnt contain any objects like commits and etc.
It must be becouse they are contained in models directory https://git-scm.com/docs/git-submodule#git-submodule-absorbgitdirs, when in code it is hardcoded "module" in file storage/filesystem/internal/dotgit/dotgit.go
Is it intended in such a way or its a bug?
The text was updated successfully, but these errors were encountered: