Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5be123e

Browse files
Mario AlvaradoByron
Mario Alvarado
authored andcommitted
Adding dubious ownership handling
1 parent5c6a4f4 commit5be123e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎git/repo/base.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,16 @@ def __init__(
296296
else:
297297
self.odb=odbt(rootpath)
298298

299+
# Check dubious ownership
300+
try:
301+
ifnot (self.bareorGit.is_cygwin()):
302+
_=self.git.status()
303+
exceptGitCommandErroraserr:
304+
if"detected dubious ownership"inerr.stderr:
305+
err_msg=f"Detected dubious ownership in repository at:{epath}"
306+
raiseInvalidGitRepositoryError(err_msg)fromNone
307+
raise
308+
299309
def__enter__(self)->"Repo":
300310
returnself
301311

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp