Show More
@@ -146,15 +146,16 b' class HomeView(BaseAppView):' | |||||
146 | 'text': obj.group_name, |
|
146 | 'text': obj.group_name, | |
147 | 'type': 'group', |
|
147 | 'type': 'group', | |
148 | 'obj': {}, |
|
148 | 'obj': {}, | |
149 | 'url': h.route_path('repo_group_home', repo_group_name=obj.group_name) |
|
149 | 'url': h.route_path( | |
|
150 | 'repo_group_home', repo_group_name=obj.group_name) | |||
150 | } |
|
151 | } | |
151 | for obj in repo_groups_iter] |
|
152 | for obj in repo_groups_iter] | |
152 |
|
153 | |||
153 |
def _get_hash_commit_list(self, auth_user, |
|
154 | def _get_hash_commit_list(self, auth_user, query=None): | |
154 |
if not |
|
155 | if not query or len(query) < 3: | |
155 | return [] |
|
156 | return [] | |
156 |
|
157 | |||
157 |
commit_hashes = re.compile('([0-9a-f]{2,40})').findall( |
|
158 | commit_hashes = re.compile('(?:commit:)([0-9a-f]{2,40})').findall(query) | |
158 |
|
159 | |||
159 | if len(commit_hashes) != 1: |
|
160 | if len(commit_hashes) != 1: | |
160 | return [] |
|
161 | return [] | |
@@ -172,9 +173,9 b' class HomeView(BaseAppView):' | |||||
172 | 'text': entry['commit_id'], |
|
173 | 'text': entry['commit_id'], | |
173 | 'type': 'commit', |
|
174 | 'type': 'commit', | |
174 | 'obj': {'repo': entry['repository']}, |
|
175 | 'obj': {'repo': entry['repository']}, | |
175 |
'url': h.route_path( |
|
176 | 'url': h.route_path( | |
176 |
|
|
177 | 'repo_commit', | |
177 |
|
|
178 | repo_name=entry['repository'], commit_id=entry['commit_id']) | |
178 | } |
|
179 | } | |
179 | for entry in result['results']] |
|
180 | for entry in result['results']] | |
180 |
|
181 |
General Comments 0
You need to be logged in to leave comments.
Login now