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 93a5c7a commit 0644475
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,12 +82,13 @@ def get_git_describe_version(abbrev=7):
"""return the string output of git desribe"""
try:
with open(devnull, "w") as fnull:
arguments = [GIT_COMMAND, "describe", "--tags", "--abbrev=%d" % abbrev]
arguments = [git, 'describe', '--tags', '--abbrev=%d' % abbrev]
cmd = 'git describe --tags --match [0-9]*'.split()
print(check_output(cmd, shell=True).decode().strip())
print('HOLA')
print(check_output(arguments, cwd=CURRENT_DIRECTORY, stderr=fnull).decode("ascii").strip())
return (
check_output("git describe --tags", cwd=CURRENT_DIRECTORY, stderr=fnull)
check_output(arguments, cwd=CURRENT_DIRECTORY, stderr=fnull)
.decode("ascii")
.strip()
)
Expand Down

0 comments on commit 0644475

Please sign in to comment.