Changeset - c44885d0e546
[Not reviewed]
stable
0 1 0
Matthias Zilk - 10 years ago 2015-05-22 21:56:50
matthias.zilk@gmail.com
vcs: added proper windows quoting to git commands (Issue #135)

Git repositories could not be forked on windows.
1 file changed with 12 insertions and 6 deletions:
0 comments (0 inline, 0 general) First comment
kallithea/lib/vcs/backends/git/repository.py
Show inline comments
 
@@ -17,12 +17,18 @@ import urllib2
 
import logging
 
import posixpath
 
import string
 
try:
 
    # Python <=2.7
 
    from pipes import quote
 
except ImportError:
 
    # Python 3.3+
 
    from shlex import quote
 
import sys
 
if sys.platform == "win32":
 
    from subprocess import list2cmdline
 
    def quote(s):
 
        return list2cmdline([s])
 
else:
 
    try:
 
        # Python <=2.7
 
        from pipes import quote
 
    except ImportError:
 
        # Python 3.3+
 
        from shlex import quote
 

	
 
from dulwich.objects import Tag
 
from dulwich.repo import Repo, NotGitRepository
0 comments (0 inline, 0 general) First comment
You need to be logged in to comment. Login now