Skip to main content

Local (On Disk) Git Repos

info

Accessing on-disk git repos is currently only possible when MergeStat is running in docker-compose.

To access local repositories (git repositories on disk), you can bind mount a local directory into the worker service. To do this, add (or uncomment) the following content to the docker-compose.yaml file:

services:
worker:
volumes:
- ~/projects:/projects # ~/projects can be any local path on your host, which MergeStat will now be able to access repositories from

After this you can use the manual repository import option to add the repository. First, create a new Git Source for local repos:

Add Git Source for local repos

Now you can add repos to this Git Source using the absolute path to the repository within the container, for example, /projects/mergestat. You can also use the file:// scheme but it is not recommended (see #868)

Add local repository manually