diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2017-09-28 15:07:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-28 15:07:51 +0200 |
commit | 2af601d5800a39ab04e9fe6cf22ef7b917ab5d67 (patch) | |
tree | cb00afc1b7f2744f401b9e2adaca34c8bb6e7f1a /git/remote.py | |
parent | 8ef53c53012c450adb8d5d386c207a98b0feb579 (diff) | |
parent | 0ef12ae4c158fa8ddb78a70dcf8f90966758db81 (diff) | |
download | gitpython-2af601d5800a39ab04e9fe6cf22ef7b917ab5d67.tar.gz |
Merge pull request #649 from OddBloke/hide_re_fetch_result
FetchInfo.re_fetch_result has no reason to be public
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py index ff72e268..81719f4b 100644 --- a/git/remote.py +++ b/git/remote.py @@ -209,7 +209,7 @@ class FetchInfo(object): NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \ FAST_FORWARD, ERROR = [1 << x for x in range(8)] - re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?') + _re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?') _flag_map = {'!': ERROR, '+': FORCED_UPDATE, @@ -264,7 +264,7 @@ class FetchInfo(object): fetch line is the corresponding line from FETCH_HEAD, like acb0fa8b94ef421ad60c8507b634759a472cd56c not-for-merge branch '0.1.7RC' of /tmp/tmpya0vairemote_repo""" - match = cls.re_fetch_result.match(line) + match = cls._re_fetch_result.match(line) if match is None: raise ValueError("Failed to parse line: %r" % line) |