Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Fix invalid dev version string
· f97b799f
André
authored
Nov 23, 2017
f97b799f
Merge branch 'fix_version' into 'master'
· 359d327b
Philipp Hörist
authored
Nov 24, 2017
Fix invalid dev version string See merge request
gajim/gajim!157
359d327b
Hide whitespace changes
Inline
Side-by-side
gajim/__init__.py
View file @
359d327b
...
...
@@ -6,7 +6,7 @@
node
=
subprocess
.
Popen
(
'
git rev-parse --short=12 HEAD
'
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
).
communicate
()[
0
]
if
node
:
__version__
+=
'
-
'
+
node
.
decode
(
'
utf-8
'
).
strip
()
__version__
+=
'
+
'
+
node
.
decode
(
'
utf-8
'
).
strip
()
except
Exception
:
pass