Merge 70bcc70826
into 3b53ffb22f
This commit is contained in:
commit
87296dd8fb
@ -1,12 +1,11 @@
|
|||||||
""" Freqtrade bot """
|
""" Freqtrade bot """
|
||||||
__version__ = 'develop'
|
__version__ = '2022.2.1-dev'
|
||||||
|
|
||||||
if __version__ == 'develop':
|
|
||||||
|
|
||||||
|
if __version__.endswith('dev'):
|
||||||
try:
|
try:
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
__version__ = 'develop-' + subprocess.check_output(
|
__version__ = __version__ + '-' + subprocess.check_output(
|
||||||
['git', 'log', '--format="%h"', '-n 1'],
|
['git', 'log', '--format="%h"', '-n 1'],
|
||||||
stderr=subprocess.DEVNULL).decode("utf-8").rstrip().strip('"')
|
stderr=subprocess.DEVNULL).decode("utf-8").rstrip().strip('"')
|
||||||
|
|
||||||
@ -30,5 +29,4 @@ if __version__ == 'develop':
|
|||||||
versionfile = Path('./freqtrade_commit')
|
versionfile = Path('./freqtrade_commit')
|
||||||
if versionfile.is_file():
|
if versionfile.is_file():
|
||||||
__version__ = f"docker-{versionfile.read_text()[:8]}"
|
__version__ = f"docker-{versionfile.read_text()[:8]}"
|
||||||
except Exception:
|
except Exception: pass
|
||||||
pass
|
|
||||||
|
Loading…
Reference in New Issue
Block a user