Skip to content

Driver does not work in submodules #5

Description

@9a3eedi

I have a git project with a submodule that contains an sqlite file. I would like to use git-sqlite in that submodule.

If I try to attach the database in the submodule with git-sqlite attach, then I get an error that the directory isn't the parent directory of a git repository.

However, if I try to attach the database in the main git repository, then I won't be able to diff it or do any merges, because it's part of the submodule.

In a submodule, there is a .git file, but it's not a directory. It's a text file that contains the path to the main git repository. I think the driver should take this into account.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions