Remove git usage everywhere
Sophie Brun
2 years ago
1 | 1 | Date: Wed, 20 May 2020 14:57:22 +0200 |
2 | 2 | Subject: Remove git usage in Help.py |
3 | 3 | |
4 | Last-Update: 2020-05-20 | |
4 | Last-Update: 2021-11-19 | |
5 | 5 | Description: we don't run the tool in a git directory, the command |
6 | 6 | fails every time. So we just display the Version, not the commit. |
7 | 7 | --- |
8 | poshc2/__init__.py | 8 ++++---- | |
8 | 9 | poshc2/client/Help.py | 7 +------ |
9 | 1 file changed, 1 insertion(+), 6 deletions(-) | |
10 | 2 files changed, 5 insertions(+), 10 deletions(-) | |
10 | 11 | |
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(): | |
11 | 31 | diff --git a/poshc2/client/Help.py b/poshc2/client/Help.py |
12 | 32 | index 5295b9c..e33e2a2 100644 |
13 | 33 | --- a/poshc2/client/Help.py |