gitea: use ssh_url instead of clone_url

Fixes #2
This commit is contained in:
Antoine Martin 2021-04-08 01:46:52 +02:00
parent 3fedfa3342
commit 776876233f
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ use serde::Deserialize;
pub(crate) struct Repository {
pub(crate) name: String,
pub(crate) full_name: String,
pub(crate) clone_url: String,
pub(crate) ssh_url: String,
}
#[derive(Deserialize)]

View file

@ -38,7 +38,7 @@ impl Job {
let output = Command::new("git")
.arg("clone")
.arg("--mirror")
.arg(&self.repo.clone_url)
.arg(&self.repo.ssh_url)
.arg(format!("{}", self.local_path.as_ref().unwrap().display()))
.output()?;