File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ git-http-backend
Original file line number Diff line number Diff line change @@ -18,10 +18,37 @@ go get github.com/asim/git-http-backend
18
18
19
19
## Usage
20
20
21
+ Run the backend pointing to a project root and git bin path
21
22
```
22
23
git-http-backend --project_root=/tmp --git_bin_path=/usr/bin/git
23
24
```
24
25
26
+ Help
27
+
28
+ ```
29
+ git-http-backend --help
30
+ ```
31
+
32
+ Flags
33
+
34
+ ```
35
+ Usage of ./git-http-backend:
36
+ -auth_pass_env_var string
37
+ set an env var to provide the basic auth pass as
38
+ -auth_user_env_var string
39
+ set an env var to provide the basic auth user as
40
+ -default_env string
41
+ set the default env
42
+ -git_bin_path string
43
+ set git bin path (default "/usr/bin/git")
44
+ -project_root string
45
+ set project root (default "/tmp")
46
+ -route_prefix string
47
+ prepend a regex prefix to each git-http-backend route
48
+ -server_address string
49
+ set server address (default ":8080")
50
+ ```
51
+
25
52
## Server
26
53
27
54
To embed your own server import and use the package
You can’t perform that action at this time.
0 commit comments