#34 fetch remote forked repo
Opened 5 months ago by lrossett. Modified 4 months ago
centos/ lrossett/centpkg issue-32_fetch-fork  into  develop

file modified
+9

@@ -111,6 +111,15 @@ 

          error_msg = "During create remote:\n  {0}\n  {1}".format(

              " ".join(e.command), e.stderr)

          raise rpkgError(error_msg)

+ 

+     try:

+         remote = [r for r in repo.remotes if r.name == remote_name][0]

+         remote.fetch()

+     except git.exc.GitCommandError as e:

+         error_msg = "During fetch remote:\n  {0}\n  {1}".format(

+             " ".join(e.command), e.stderr)

+         raise rpkgError(error_msg)

+ 

      return True

  

  

fixes #32

fetches the forked repository after its creation.

Metadata