Skip to content

Commit c2d1dab

Browse files
authored
raise error when dubious git ownership is at fault
1 parent a577674 commit c2d1dab

File tree

1 file changed

+2
-0
lines changed
  • src/mkdocs_git_revision_date_localized_plugin

1 file changed

+2
-0
lines changed

src/mkdocs_git_revision_date_localized_plugin/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ def get_git_commit_timestamp(
154154
)
155155
raise err
156156
except GitCommandNotFound as err:
157+
if "detected dubious ownership" in str(err):
158+
raise err
157159
if self.config.get('fallback_to_build_date'):
158160
log(
159161
"[git-revision-date-localized-plugin] Unable to perform command: 'git log'. Is git installed?"

0 commit comments

Comments
 (0)