Show More
@@ -307,15 +307,16 b' class GitCommit(base.BaseCommit):' | |||
|
307 | 307 | filenodes = [] |
|
308 | 308 | |
|
309 | 309 | # extracted tree ID gives us our files... |
|
310 | bytes_path = safe_str(path) # libgit operates on bytes | |
|
310 | 311 | for name, stat_, id_, type_ in self._remote.tree_items(tree_id): |
|
311 | 312 | if type_ == 'link': |
|
312 | url = self._get_submodule_url('/'.join((path, name))) | |
|
313 | url = self._get_submodule_url('/'.join((bytes_path, name))) | |
|
313 | 314 | dirnodes.append(SubModuleNode( |
|
314 | 315 | name, url=url, commit=id_, alias=self.repository.alias)) |
|
315 | 316 | continue |
|
316 | 317 | |
|
317 | if path != '': | |
|
318 | obj_path = '/'.join((path, name)) | |
|
318 | if bytes_path != '': | |
|
319 | obj_path = '/'.join((bytes_path, name)) | |
|
319 | 320 | else: |
|
320 | 321 | obj_path = name |
|
321 | 322 | if obj_path not in self._stat_modes: |
@@ -1098,7 +1098,7 b' class ReadmeFinder:' | |||
|
1098 | 1098 | self._renderer_extensions = self.RENDERER_TO_EXTENSION.get( |
|
1099 | 1099 | default_renderer, []) |
|
1100 | 1100 | |
|
1101 | def search(self, commit, path='/'): | |
|
1101 | def search(self, commit, path=u'/'): | |
|
1102 | 1102 | """ |
|
1103 | 1103 | Find a readme in the given `commit`. |
|
1104 | 1104 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now