Skip to content

Commit 1d297fb

Browse files
committed
.
1 parent 5c0ab90 commit 1d297fb

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
git-http-backend

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,37 @@ go get github.com/asim/git-http-backend
1818

1919
## Usage
2020

21+
Run the backend pointing to a project root and git bin path
2122
```
2223
git-http-backend --project_root=/tmp --git_bin_path=/usr/bin/git
2324
```
2425

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+
2552
## Server
2653

2754
To embed your own server import and use the package

0 commit comments

Comments
 (0)