diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-15 13:42:33 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-10-16 02:46:32 +0200 |
commit | b02662d4e870a34d2c6d97d4f702fcc1311e5177 (patch) | |
tree | 6f2bc1d942f979b3bb379d833700fe33f955415d /git/refs/remote.py | |
parent | 0210e394e0776d0b7097bf666bebd690ed0c0e4f (diff) | |
download | gitpython-b02662d4e870a34d2c6d97d4f702fcc1311e5177.tar.gz |
src: reduce needless deps to `gitdb.util`
Diffstat (limited to 'git/refs/remote.py')
-rw-r--r-- | git/refs/remote.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/git/refs/remote.py b/git/refs/remote.py index 1f256b75..4fc784d1 100644 --- a/git/refs/remote.py +++ b/git/refs/remote.py @@ -1,9 +1,10 @@ +import os + from git.util import join_path -from gitdb.util import join -from .head import Head +import os.path as osp -import os +from .head import Head __all__ = ["RemoteReference"] @@ -36,7 +37,7 @@ class RemoteReference(Head): # and delete remainders manually for ref in refs: try: - os.remove(join(repo.git_dir, ref.path)) + os.remove(osp.join(repo.git_dir, ref.path)) except OSError: pass # END for each ref |