-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.gemini
35 lines (21 loc) · 896 Bytes
/
README.gemini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# git-remote-gemini
This is a Git remote helper that allows for basic cloning of git repos over the
Gemini protocol. Build it and install it in your $PATH somewhere and then run
`git clone gemini://<domain>/<repo>.git`
You must be running a Gemini server that detects a Git repo and understands the
following queries:
## List
`gemini://<domain>/<repo>.git?list`
The server must respond with the output of:
`git for-each-ref --format=%(objectname) %(refname) refs/heads/`
and with an optional line indicating the default branch (e.g. `master`) in this
format:
`@refs/heads/<branch> HEAD`
and ending with an empty line.
## Fast Export
`gemini://<domain>/<repo>.git?fast-export=<ref>`
The server must respond with the output of:
`git fast-export <rev>`
## Notes
This does not support marks files or refspecs yet. It is just a "dumb" clone
method as mentioned in the Git documentation.