Show More
@@ -80,12 +80,14 b' class GitRepository(BaseRepository):' | |||||
80 | """ |
|
80 | """ | |
81 |
|
81 | |||
82 | _copts = ['-c', 'core.quotepath=false', ] |
|
82 | _copts = ['-c', 'core.quotepath=false', ] | |
83 |
|
83 | _str_cmd = False | ||
84 | if isinstance(cmd, basestring): |
|
84 | if isinstance(cmd, basestring): | |
85 | cmd = [cmd] |
|
85 | cmd = [cmd] | |
|
86 | _str_cmd = True | |||
86 |
|
87 | |||
87 | cmd = ['GIT_CONFIG_NOGLOBAL=1', 'git'] + _copts + cmd |
|
88 | cmd = ['GIT_CONFIG_NOGLOBAL=1', 'git'] + _copts + cmd | |
88 |
|
89 | if _str_cmd: | ||
|
90 | cmd = ' '.join(cmd) | |||
89 | try: |
|
91 | try: | |
90 | opts = dict( |
|
92 | opts = dict( | |
91 | shell=isinstance(cmd, basestring), |
|
93 | shell=isinstance(cmd, basestring), |
General Comments 0
You need to be logged in to leave comments.
Login now