#12 Do not clone using ssh, since this make testing harder
Merged 4 years ago by jibecfed. Opened 4 years ago by misc.
fedora-docs/ misc/translations-scripts checkout_https  into  master

file modified
+4 -2
@@ -99,12 +99,14 @@ 

      print("* clone_translated_source")

      repo_dir = os.path.dirname(os.path.abspath(__file__)) + "/translated-sources/"

  

-     url = "ssh://git@pagure.io/fedora-docs/translated-sources.git"

+     url = "https://pagure.io/fedora-docs/translated-sources.git"

  

      if os.path.exists(repo_dir):

          subprocess.run(['git', 'pull'], check=True, cwd=repo_dir)

      else:

-         subprocess.run(["git", "clone", url, repo_dir], check=True)

+         subprocess.run(["git", "clone", url, repo_dir, "--config",

+                         "remote.origin.pushurl=ssh://git@pagure.io/fedora-docs-l10n/translated-sources.git"

+                        ], check=True)

  

  def commit_translated_source():

      """Commit translated sources"""

no initial comment

Pull-Request has been merged by jibecfed

4 years ago
Metadata