upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/test_utils/src/git.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2023-12-12 00:00:00 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2023-12-12 00:00:00 +0000
commit3e52ecb609f8424cffb2e6398c599aa78224825a (patch)
tree5c199510c10e206d6c6801dbabdae9691c03341c /test_utils/src/git.rs
parent6d3c9218d2d3320f5d7fb9b9ede8750e947b70e8 (diff)
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
Diffstat (limited to 'test_utils/src/git.rs')
-rw-r--r--test_utils/src/git.rs5
1 files changed, 5 insertions, 0 deletions
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 {
146 .context(format!("cannot find branch {branch_name}"))?; 146 .context(format!("cannot find branch {branch_name}"))?;
147 Ok(branch.into_reference().peel_to_commit()?.id()) 147 Ok(branch.into_reference().peel_to_commit()?.id())
148 } 148 }
149
150 pub fn add_remote(&self, name: &str, url: &str) -> Result<()> {
151 self.git_repo.remote(name, url)?;
152 Ok(())
153 }
149} 154}
150 155
151impl Drop for GitTestRepo { 156impl Drop for GitTestRepo {