From dd0f43bf87b07452ee7f4ad18139bfd304642316 Mon Sep 17 00:00:00 2001
From: Li
Date: Sun, 8 May 2022 12:31:02 +1200
Subject: [PATCH] Update made automatically due to pressing build
---
HorseIsleServer/build.py | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/HorseIsleServer/build.py b/HorseIsleServer/build.py
index 2c3c496..00ca857 100644
--- a/HorseIsleServer/build.py
+++ b/HorseIsleServer/build.py
@@ -22,16 +22,16 @@ commit_hash = "0"*40
commit_tag = "v0.0.0"
commit_branch = "master"
-try:
- subprocess.run(['git', 'add', '-A'], stdout=subprocess.PIPE)
- subprocess.run(['git', 'commit', '-m', 'Update made automatically due to pressing build'], stdout=subprocess.PIPE)
- commit_hash = subprocess.run(['git', 'rev-parse', '--verify', 'HEAD'], stdout=subprocess.PIPE).stdout.replace(b"\r", b"").replace(b"\n", b"").decode("UTF-8")
- commit_tag = subprocess.run(['git', 'describe', '--abbrev=0', '--tags'], stdout=subprocess.PIPE).stdout.replace(b"\r", b"").replace(b"\n", b"").decode("UTF-8")
- commits_since_tag = subprocess.run(['git rev-list', commit_tag+'..HEAD', '--count'], stdout=subprocess.PIPE).stdout.replace(b"\r", b"").replace(b"\n", b"").decode("UTF-8")
- commit_tag = + "." + commits_since_tag
- commit_branch = subprocess.run(['git', 'branch', '--show-current'], stdout=subprocess.PIPE).stdout.replace(b"\r", b"").replace(b"\n", b"").decode("UTF-8")
-except FileNotFoundError:
- print("Git not installed")
+#try:
+subprocess.run(['git', 'add', '-A'], stdout=subprocess.PIPE)
+subprocess.run(['git', 'commit', '-m', 'Update made automatically due to pressing build'], stdout=subprocess.PIPE)
+commit_hash = subprocess.run(['git', 'rev-parse', '--verify', 'HEAD'], stdout=subprocess.PIPE).stdout.replace(b"\r", b"").replace(b"\n", b"").decode("UTF-8")
+commit_tag = subprocess.run(['git', 'describe', '--abbrev=0', '--tags'], stdout=subprocess.PIPE).stdout.replace(b"\r", b"").replace(b"\n", b"").decode("UTF-8")
+commits_since_tag = subprocess.run(['git rev-list', commit_tag+'..HEAD', '--count'], stdout=subprocess.PIPE).stdout.replace(b"\r", b"").replace(b"\n", b"").decode("UTF-8")
+commit_tag = + "." + commits_since_tag
+commit_branch = subprocess.run(['git', 'branch', '--show-current'], stdout=subprocess.PIPE).stdout.replace(b"\r", b"").replace(b"\n", b"").decode("UTF-8")
+#except FileNotFoundError:
+# print("Git not installed")
commit_date = datetime.datetime.now().strftime("%d/%m/%Y")
commit_time = datetime.datetime.now().strftime("%H:%M:%S")