Codebase list poshc2 / bbb9702
Remove git usage everywhere Sophie Brun 2 years ago
1 changed file(s) with 22 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
11 Date: Wed, 20 May 2020 14:57:22 +0200
22 Subject: Remove git usage in Help.py
33
4 Last-Update: 2020-05-20
4 Last-Update: 2021-11-19
55 Description: we don't run the tool in a git directory, the command
66 fails every time. So we just display the Version, not the commit.
77 ---
8 poshc2/__init__.py | 8 ++++----
89 poshc2/client/Help.py | 7 +------
9 1 file changed, 1 insertion(+), 6 deletions(-)
10 2 files changed, 5 insertions(+), 10 deletions(-)
1011
12 diff --git a/poshc2/__init__.py b/poshc2/__init__.py
13 index ba23b09..05cfb34 100644
14 --- a/poshc2/__init__.py
15 +++ b/poshc2/__init__.py
16 @@ -2,10 +2,10 @@
17
18 import sys, subprocess
19
20 -try:
21 - VERSION = subprocess.check_output(["git", "describe", "--match", "v[0-9]*", "--abbrev=0", "--tags", "HEAD"]).decode().strip()
22 -except subprocess.CalledProcessError:
23 - VERSION = "Zip"
24 +#try:
25 +# VERSION = subprocess.check_output(["git", "describe", "--match", "v[0-9]*", "--abbrev=0", "--tags", "HEAD"]).decode().strip()
26 +#except subprocess.CalledProcessError:
27 +VERSION = "Zip"
28
29
30 def run():
1131 diff --git a/poshc2/client/Help.py b/poshc2/client/Help.py
1232 index 5295b9c..e33e2a2 100644
1333 --- a/poshc2/client/Help.py