Skip to content

Commit

Permalink
Update version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rcervinoucm authored May 24, 2024
1 parent 200273d commit 398fc0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ctlearn/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ def get_git_describe_version(abbrev=7):
"""return the string output of git desribe"""
try:
with open(devnull, "w") as fnull:
arguments = ['git', 'describe', '--tags', '--abbrev=%d' % abbrev]
arguments = ['git', 'describe', '--tags'
print('HOLA1')
cmd = 'git describe --tags --match [0-9]*'.split()
print(check_output(cmd, shell=True).decode().strip())
# print(check_output(cmd, shell=True).decode().strip())
print('HOLA')
print(check_output(arguments, cwd=CURRENT_DIRECTORY, stderr=fnull).decode("ascii").strip())
return (
Expand Down

0 comments on commit 398fc0d

Please sign in to comment.