◐ Shell
reader mode source ↗
Skip to content
Merged
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
3 changes: 2 additions & 1 deletion git/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,8 @@ def _obtain_lock_or_raise(self) -> None:
)

try:
open(lock_file, mode='w', closefd=True)
except OSError as e:
raise IOError(str(e)) from e

Toggle all file notes Toggle all file annotations