1
0
mirror of https://github.com/oskar456/dzonegit.git synced 2024-05-11 05:55:41 +00:00

Drop dzonegit multi-call executable

This commit is contained in:
Ondřej Caletka
2018-08-10 12:30:51 +02:00
parent 5988fd005e
commit 9a521350d3
2 changed files with 0 additions and 20 deletions

View File

@@ -490,22 +490,3 @@ def post_receive(stdin=sys.stdin):
cmd.append(z)
print("Calling {}".format(" ".join(cmd)))
subprocess.run(cmd)
def main():
name = Path(sys.argv[0]).name
print(name)
if name == "pre-commit":
pre_commit()
elif name == "update":
update()
elif name == "pre-receive":
pre_receive()
elif name == "post-receive":
post_receive()
else:
sys.exit("No valid command found")
if __name__ == "__main__":
main()

View File

@@ -19,7 +19,6 @@ setup(
tests_require=["pytest"],
entry_points={
"console_scripts": [
"dzonegit = dzonegit:main",
"dzonegit-pre-commit = dzonegit:pre_commit",
"dzonegit-pre-receive = dzonegit:pre_receive",
"dzonegit-post-receive = dzonegit:post_receive",