From d179e4db0195a9989c46e33c3738d350771d9214 Mon Sep 17 00:00:00 2001
From: Li
Date: Sun, 8 May 2022 12:34:14 +1200
Subject: [PATCH] Update made automatically due to pressing build
---
HorseIsleServer/prebuild.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/HorseIsleServer/prebuild.py b/HorseIsleServer/prebuild.py
index d1e4a93..a96c921 100644
--- a/HorseIsleServer/prebuild.py
+++ b/HorseIsleServer/prebuild.py
@@ -27,7 +27,7 @@ try:
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")
- commit_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 += "." + 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_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")