summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-10-04 14:29:28 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-10-12 23:31:43 +0200
commit4b586fbb94d5acc6e06980a8a96f66771280beda (patch)
tree87f63f2916114b56ade83d0b9653d1d4b61f263c /git/cmd.py
parent8ea7e265d1549613c12cbe42a2e012527c1a97e4 (diff)
downloadgitpython-4b586fbb94d5acc6e06980a8a96f66771280beda.tar.gz
daemon, #525: FIX remote urls in config-files
+ Parse most remote & config-urls \-->/. + Used relative daemon-paths. + Use git-daemon PORT above 10k; on Windows all below need Admin rights. +FIXED git-daemon @with_rw_and_rw_remote_repo(): + test_base.test_with_rw_remote_and_rw_repo() PASS. + test_remote.test_base() now freezes! (so still hidden win_err) + repo_test: minor finally delete test-repos created inside this repo. + util: delete unused `absolute_project_path()`.
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index f1033dde..59f17448 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -186,14 +186,18 @@ class Git(LazyMixin):
# Override this value using `Git.USE_SHELL = True`
USE_SHELL = False
- class AutoInterrupt(object):
+ @classmethod
+ def polish_url(cls, url):
+ return url.replace("\\\\", "\\").replace("\\", "/")
+ class AutoInterrupt(object):
"""Kill/Interrupt the stored process instance once this instance goes out of scope. It is
used to prevent processes piling up in case iterators stop reading.
Besides all attributes are wired through to the contained process object.
The wait method was overridden to perform automatic status code checking
and possibly raise."""
+
__slots__ = ("proc", "args")
def __init__(self, proc, args):