Skip to content

Commit

Permalink
Add simple push request/response as obtained through HTTP proxying
Browse files Browse the repository at this point in the history
The payload is exactly the same as through the git daemon, or other
means, which makes it easiest to intercept via

`git -c http.proxy=localhost:9090 push`

and a proxy running at localhost:9090 (like Proxyman  on macOS).
  • Loading branch information
Byron committed Nov 16, 2022
1 parent 0c9c48b commit 0573107
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added git-transport/tests/fixtures/v1/push.request
Binary file not shown.
8 changes: 8 additions & 0 deletions git-transport/tests/fixtures/v1/push.response
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
0022Resolving deltas: 0% (0/2)0022Resolving deltas: 50% (1/2)0022Resolving deltas: 100% (2/2)0043Resolving deltas: 100% (2/2), completed with 2 local objects.
0013000eunpack ok
001c0017ok refs/heads/main
00b5
GitHub found 1 vulnerability on the-lean-crate/criner's default branch (1 high). To find out more, visit:
https://github.com/the-lean-crate/criner/security/dependabot/1

000900000000
Expand Down

0 comments on commit 0573107

Please sign in to comment.