Skip to content

Commit bc5a6a0

Browse files
committed
Improve documentation regarding repo directory
1 parent 97df9cd commit bc5a6a0

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ To start the server, execute the following command
2323
```sh
2424
docker run -it \
2525
--name git-server \
26-
--mount type=bind,source="$(pwd)/../tmp",target=/var/attachments \
27-
--mount type=bind,source="$(pwd)/../tmp",target=/var/repos -p 5000:5000 \
26+
--mount type=bind,source=/var/attachments,target=/var/attachments \
27+
--mount type=bind,source=/var/repos,target=/var/repos -p 5000:5000 \
2828
git-server
2929
```
3030

31+
> **Important**
32+
> Make sure that `source`, `target` in the docker run command and the `git_dir` in the configuration file have the same path. This is required because forked repositories link to parent repositories via the git alternates mechanism wherein the absolute path of the parent repository is stored in the forked repository's alternates file.
33+
3134
The server will be listening at port `5000`
3235

3336
### Available APIs

0 commit comments

Comments
 (0)