Show More
@@ -20,6 +20,7 b' import os' | |||
|
20 | 20 | import posixpath as vcspath |
|
21 | 21 | import re |
|
22 | 22 | import stat |
|
23 | import traceback | |
|
23 | 24 | import urllib |
|
24 | 25 | import urllib2 |
|
25 | 26 | from functools import wraps |
@@ -124,11 +125,15 b' class GitRemote(object):' | |||
|
124 | 125 | |
|
125 | 126 | @reraise_safe_exceptions |
|
126 | 127 | def assert_correct_path(self, wire): |
|
128 | path = wire.get('path') | |
|
127 | 129 | try: |
|
128 | 130 | self._factory.repo(wire) |
|
129 | 131 | except NotGitRepository as e: |
|
130 | # Exception can contain unicode which we convert | |
|
131 | raise exceptions.AbortException(repr(e)) | |
|
132 | tb = traceback.format_exc() | |
|
133 | log.debug("Invalid Git path `%s`, tb: %s", path, tb) | |
|
134 | return False | |
|
135 | ||
|
136 | return True | |
|
132 | 137 | |
|
133 | 138 | @reraise_safe_exceptions |
|
134 | 139 | def bare(self, wire): |
General Comments 0
You need to be logged in to leave comments.
Login now