docs(fix): Fix usage of pydriller in git_to_sphinx

Description

Abstract

Fix code to get the “path to repo” from pydriller

Motivation

It was not seen in the job running make doc because warnings are ignored (to be changed in a future commit).

Rationale

They store a list now so we need to get the first item from this list.

Info

Hash

200d022dcabdfe5cb6ae4bb37a3582910c8b325c

Date

2019-08-16 00:12:17 +0200

Parents
  • docs(fix): Fix bad syntax in README [8079b794]2019-08-16 00:09:59 +0200

Children
  • ci(docs): Make CI job `build_doc` fail if a warning occurs [3ea3c14f]2019-08-16 00:16:52 +0200

Branches
Tags

(No tags)

Changes

docs/git_to_sphinx.py

Type

Modified

Stats

+1 -1

@@ -140,7 +140,7 @@ class RepositoryMining(RepositoryMiningBase):
             raise Exception("The path to the repo has to be of type 'string'")

     def get_git_repo(self):
-        path_repo = self._path_to_repo
+        path_repo = self._path_to_repo[0]

         if self._isremote(path_repo):
             # save in `self` to avoid premature destruction of the tmp directory