upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-08-06 13:11:35 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-08-06 13:11:35 +0100
commit3300a1e4a463dcc007292ff3c3e4cf7cc2252e71 (patch)
tree096f82612871affa2392c6a37a0fd30d1002bb84 /src
parent47271a823485c002ab6c3f304b86dbba2d7594dd (diff)
feat(remote): `fetch` ignore git servers `prs/*`
as the namespace is reserved for nostr patches
Diffstat (limited to 'src')
-rw-r--r--src/git_remote_helper.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/git_remote_helper.rs b/src/git_remote_helper.rs
index 0cfd268..d4aee42 100644
--- a/src/git_remote_helper.rs
+++ b/src/git_remote_helper.rs
@@ -440,7 +440,11 @@ fn fetch(
440) -> Result<()> { 440) -> Result<()> {
441 let fetch_batch = get_oids_from_fetch_batch(stdin, oid, refstr)?; 441 let fetch_batch = get_oids_from_fetch_batch(stdin, oid, refstr)?;
442 442
443 let oids_from_git_servers = fetch_batch.values().cloned().collect::<Vec<String>>(); 443 let oids_from_git_servers = fetch_batch
444 .iter()
445 .filter(|(refstr, _)| !refstr.contains("refs/heads/prs/"))
446 .map(|(_, oid)| oid.clone())
447 .collect::<Vec<String>>();
444 448
445 let mut errors = HashMap::new(); 449 let mut errors = HashMap::new();
446 let term = console::Term::stderr(); 450 let term = console::Term::stderr();