File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,17 @@ Clone and push to git repository test fixtures over HTTP.
44
55## What it does
66
7- Given a directory of bare git repositories, ` git-http-mock-server ` will serve those repositories using the
7+ It is similar to [ ` git-http-server ` ] ( https://npm.im/git-http-server ) but designed for test cases only.
8+ It uses copy-on-write so that pushing to the repo doesn't actually alter the repo.
9+
10+ Run in a directory full of bare git repositories, ` git-http-mock-server ` will serve those repos using the
811native ` git-http-backend ` process built into ` git ` (which needs to be installed on the machine).
9- You can then run tests that clone or push to git repositories (regardless of whether Github is down)
10- and you can run those tests in parallel without them interfering with each other.
11- (It uses copy-on-write so that pushing to the repo doesn't actually alter the repo.)
12- Because it uses ` git-http-backend ` git hooks (such as ` hooks/update ` and ` hooks/post-receive ` ) are automatically supported.
12+
13+ You can then:
14+ - run tests that clone or push to those git repositories (regardless of whether Github is down :wink : ).
15+ - run those tests in parallel without them interfering with each other.
16+
17+ Git hooks such as ` hooks/update ` and ` hooks/post-receive ` are automatically supported.
1318
1419It also supports HTTP Basic Auth password protection of repos so you can test how your code handles 401 errors.
1520
@@ -29,9 +34,9 @@ test-repo1.git test-repo2.git imaginatively-named-repo.git
2934> git-http-mock-server
3035```
3136
32- Now clone away...
37+ Now clone and push away...
3338``` sh
34- > git clone https ://localhost:8174/imaginatively-named-repo.git
39+ > git clone http ://localhost:8174/imaginatively-named-repo.git
3540```
3641
3742### Environment Variables
You can’t perform that action at this time.
0 commit comments