diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2016-10-22 11:11:25 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2016-10-22 11:11:25 +0200 |
commit | caa0ea7a0893fe90ea043843d4e6ad407126d7b8 (patch) | |
tree | 2f688eb182f2e76091134c47c4a327681c12e15b /git/remote.py | |
parent | afcd64ebbb770908bd2a751279ff070dea5bb97c (diff) | |
parent | cc77e6b2862733a211c55cf29cc7a83c36c27919 (diff) | |
download | gitpython-caa0ea7a0893fe90ea043843d4e6ad407126d7b8.tar.gz |
Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ankostis-cygwin
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/git/remote.py b/git/remote.py index 7cb7fd59..c682837e 100644 --- a/git/remote.py +++ b/git/remote.py @@ -5,8 +5,25 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php # Module implementing a remote object allowing easy access to git remotes +import logging import re +from git.cmd import handle_process_output, Git +from git.compat import (defenc, force_text, is_win) +from git.exc import GitCommandError +from git.util import ( + LazyMixin, + Iterable, + IterableList, + RemoteProgress, + CallableRemoteProgress +) +from git.util import ( + join_path, +) + +import os.path as osp + from .config import ( SectionConstraint, cp, @@ -18,21 +35,7 @@ from .refs import ( SymbolicReference, TagReference ) -from git.util import ( - LazyMixin, - Iterable, - IterableList, - RemoteProgress, - CallableRemoteProgress -) -from git.util import ( - join_path, -) -from git.cmd import handle_process_output, Git -from gitdb.util import join -from git.compat import (defenc, force_text, is_win) -import logging -from git.exc import GitCommandError + log = logging.getLogger('git.remote') @@ -644,7 +647,7 @@ class Remote(LazyMixin, Iterable): continue # read head information - with open(join(self.repo.git_dir, 'FETCH_HEAD'), 'rb') as fp: + with open(osp.join(self.repo.git_dir, 'FETCH_HEAD'), 'rb') as fp: fetch_head_info = [l.decode(defenc) for l in fp.readlines()] l_fil = len(fetch_info_lines) |