Show More
@@ -830,7 +830,13 b' class BaseCommit(object):' | |||
|
830 | 830 | |
|
831 | 831 | :param pre_load: Optional. List of commit attributes to load. |
|
832 | 832 | """ |
|
833 |
|
|
|
833 | commits = self.get_file_history(path, limit=1, pre_load=pre_load) | |
|
834 | if not commits: | |
|
835 | raise RepositoryError( | |
|
836 | 'Failed to fetch history for path {}. ' | |
|
837 | 'Please check if such path exists in your repository'.format( | |
|
838 | path)) | |
|
839 | return commits[0] | |
|
834 | 840 | |
|
835 | 841 | def get_file_history(self, path, limit=None, pre_load=None): |
|
836 | 842 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now