From 3e52ecb609f8424cffb2e6398c599aa78224825a Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 12 Dec 2023 00:00:00 +0000 Subject: feat(claim) create yaml add maintainers and relays - create yaml file with maintainers and relays - add maintainers to repo event - add current user as maintainer - custom repo relays from cli argument - save git-server in repo event --- test_utils/src/git.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test_utils/src') diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index af87a3a..7f0b4c7 100644 --- a/test_utils/src/git.rs +++ b/test_utils/src/git.rs @@ -146,6 +146,11 @@ impl GitTestRepo { .context(format!("cannot find branch {branch_name}"))?; Ok(branch.into_reference().peel_to_commit()?.id()) } + + pub fn add_remote(&self, name: &str, url: &str) -> Result<()> { + self.git_repo.remote(name, url)?; + Ok(()) + } } impl Drop for GitTestRepo { -- cgit v1.2.3