Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
c74c8885
by André Apitzsch at 2018-02-25T21:35:19+01:00
1 changed file:
Changes:
| ... | ... | @@ -3,10 +3,10 @@ import subprocess |
| 3 | 3 |
__version__ = "0.99.2"
|
| 4 | 4 |
|
| 5 | 5 |
try:
|
| 6 |
- node = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
|
|
| 7 |
- stdout=subprocess.PIPE).communicate()[0]
|
|
| 6 |
+ p = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
|
|
| 7 |
+ stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
|
|
| 8 |
+ node = p.communicate()[0]
|
|
| 8 | 9 |
if node:
|
| 9 | 10 |
__version__ += '+' + node.decode('utf-8').strip()
|
| 10 | 11 |
except Exception:
|
| 11 | 12 |
pass
|
| 12 |
- |