Skip to content

Use flock() for file locking #513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 9, 2016
Prev Previous commit
Next Next commit
Forgot to uncomment conditional import
  • Loading branch information
expobrain committed Oct 7, 2016
commit 4c9dd7fac214bb0f85077cab40d4455cf3113b17
3 changes: 1 addition & 2 deletions git/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ def flock(fd, flags=0):


else:
# from fcntl import flock, LOCK_UN, LOCK_EX, LOCK_NB
pass
from fcntl import flock, LOCK_UN, LOCK_EX, LOCK_NB


def unbare_repo(func):
Expand Down