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