Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fcd1b34e49 | |||
| a0762ac2d3 | |||
| 53219a55e1 | |||
| 71ac555f25 | |||
| f25fa589fe |
@@ -42,9 +42,9 @@ class GitHttpHandler(BaseHTTPRequestHandler):
|
|||||||
hook_path = os.environ.get(
|
hook_path = os.environ.get(
|
||||||
"GIT_GATE_ACCESS_HOOK", "/etc/git-gate/access-hook",
|
"GIT_GATE_ACCESS_HOOK", "/etc/git-gate/access-hook",
|
||||||
)
|
)
|
||||||
|
peer = self.client_address[0]
|
||||||
hook = subprocess.run(
|
hook = subprocess.run(
|
||||||
[hook_path, "upload-pack",
|
[hook_path, "upload-pack", str(repo_dir), peer, peer],
|
||||||
str(repo_dir), self.client_address[0], self.client_address[0]],
|
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
check=False,
|
check=False,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user