Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
a57f8270
Unverified
Commit
a57f8270
authored
Sep 17, 2025
by
Lei Wang
Committed by
GitHub
Sep 17, 2025
Browse files
[Bugfix] Bug fix when git command is not installed (#823)
parent
15479958
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tilelang/version.py
tilelang/version.py
+2
-1
No files found.
tilelang/version.py
View file @
a57f8270
...
...
@@ -32,7 +32,8 @@ def get_git_commit_id() -> Union[str, None]:
cwd
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
stderr
=
subprocess
.
DEVNULL
,
encoding
=
'utf-8'
).
strip
()
except
subprocess
.
SubprocessError
:
# FileNotFoundError is raised when git is not installed
except
(
subprocess
.
SubprocessError
,
FileNotFoundError
):
return
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment