mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-06 21:25:42 +12:00
Update made automatically due to pressing build
This commit is contained in:
parent
dd0f43bf87
commit
0e84faa0c1
1 changed files with 10 additions and 10 deletions
|
@ -22,16 +22,16 @@ commit_hash = "0"*40
|
||||||
commit_tag = "v0.0.0"
|
commit_tag = "v0.0.0"
|
||||||
commit_branch = "master"
|
commit_branch = "master"
|
||||||
|
|
||||||
#try:
|
try:
|
||||||
subprocess.run(['git', 'add', '-A'], stdout=subprocess.PIPE)
|
subprocess.run(['git', 'add', '-A'], stdout=subprocess.PIPE)
|
||||||
subprocess.run(['git', 'commit', '-m', 'Update made automatically due to pressing build'], 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_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', '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")
|
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_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")
|
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:
|
except FileNotFoundError:
|
||||||
# print("Git not installed")
|
print("Git not installed")
|
||||||
|
|
||||||
commit_date = datetime.datetime.now().strftime("%d/%m/%Y")
|
commit_date = datetime.datetime.now().strftime("%d/%m/%Y")
|
||||||
commit_time = datetime.datetime.now().strftime("%H:%M:%S")
|
commit_time = datetime.datetime.now().strftime("%H:%M:%S")
|
||||||
|
|
Loading…
Add table
Reference in a new issue