summaryrefslogtreecommitdiff
path: root/git/refs
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-10-15 13:11:16 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-10-16 02:46:31 +0200
commit0210e394e0776d0b7097bf666bebd690ed0c0e4f (patch)
treee74014dd49c93f75b8cf388d700b681a321d261b /git/refs
parenta2d248bb8362808121f6b6abfd316d83b65afa79 (diff)
downloadgitpython-0210e394e0776d0b7097bf666bebd690ed0c0e4f.tar.gz
src: import os.path as osp
Diffstat (limited to 'git/refs')
-rw-r--r--git/refs/symbolic.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py
index ebaff8ca..d1c412c8 100644
--- a/git/refs/symbolic.py
+++ b/git/refs/symbolic.py
@@ -1,5 +1,9 @@
import os
+from git.compat import (
+ string_types,
+ defenc
+)
from git.objects import Object, Commit
from git.util import (
join_path,
@@ -7,7 +11,6 @@ from git.util import (
to_native_path_linux,
assure_directory_exists
)
-
from gitdb.exc import (
BadObject,
BadName
@@ -22,13 +25,12 @@ from gitdb.util import (
hex_to_bin,
LockedFD
)
-from git.compat import (
- string_types,
- defenc
-)
+
+import os.path as osp
from .log import RefLog
+
__all__ = ["SymbolicReference"]
@@ -458,7 +460,7 @@ class SymbolicReference(object):
# delete the reflog
reflog_path = RefLog.path(cls(repo, full_ref_path))
- if os.path.isfile(reflog_path):
+ if osp.isfile(reflog_path):
os.remove(reflog_path)
# END remove reflog