summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/util.py b/git/util.py
index 31ff94fa..f931abe2 100644
--- a/git/util.py
+++ b/git/util.py
@@ -106,7 +106,7 @@ def join_path(a, *p):
return path
-if is_win():
+if is_win:
def to_native_path_windows(path):
return path.replace('/', '\\')
@@ -587,7 +587,7 @@ class LockFile(object):
try:
# on bloody windows, the file needs write permissions to be removable.
# Why ...
- if is_win():
+ if is_win:
os.chmod(lfp, 0o777)
# END handle win32
os.remove(lfp)