Skip to content

Commit

Permalink
Merge pull request #1251 from OceanParcels/version_giterror_pipe
Browse files Browse the repository at this point in the history
Fixing 'fatal: not a git repository' warning
  • Loading branch information
erikvansebille authored Oct 6, 2022
2 parents 4908455 + 767e71f commit 33f4902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parcels/_version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import subprocess
import os
try:
version = subprocess.check_output(['git', '-C', os.path.dirname(__file__), 'describe', '--tags']).decode('ascii').strip()
version = subprocess.check_output(['git', '-C', os.path.dirname(__file__), 'describe', '--tags'], stderr=subprocess.PIPE).decode('ascii').strip()
except:
from parcels._version_setup import version as version # noqa

0 comments on commit 33f4902

Please sign in to comment.