upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-05-02 14:37:14 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2025-05-05 21:30:59 +0100
commita744f4aae9ffee9dd246090bef486b09433778d0 (patch)
tree5d1083668ec989d1fc8529a7ece60dc2bd4ec594 /src/bin/git_remote_nostr
parent0f3969325385f2707e359cb28d9c49c509310452 (diff)
chore: nix flake update
update nix dependancies to latest version using default update options run `cargo clippy --fix` and `cargo fmt` to fix new clippy errors
Diffstat (limited to 'src/bin/git_remote_nostr')
-rw-r--r--src/bin/git_remote_nostr/list.rs9
-rw-r--r--src/bin/git_remote_nostr/push.rs2
2 files changed, 3 insertions, 8 deletions
diff --git a/src/bin/git_remote_nostr/list.rs b/src/bin/git_remote_nostr/list.rs
index b802a4a..eba573b 100644
--- a/src/bin/git_remote_nostr/list.rs
+++ b/src/bin/git_remote_nostr/list.rs
@@ -33,12 +33,7 @@ pub async fn run_list(
33 repo_ref: &RepoRef, 33 repo_ref: &RepoRef,
34 for_push: bool, 34 for_push: bool,
35) -> Result<HashMap<String, HashMap<String, String>>> { 35) -> Result<HashMap<String, HashMap<String, String>>> {
36 let nostr_state = 36 let nostr_state = (get_state_from_cache(Some(git_repo.get_path()?), repo_ref).await).ok();
37 if let Ok(nostr_state) = get_state_from_cache(Some(git_repo.get_path()?), repo_ref).await {
38 Some(nostr_state)
39 } else {
40 None
41 };
42 37
43 let term = console::Term::stderr(); 38 let term = console::Term::stderr();
44 39
@@ -169,7 +164,7 @@ async fn get_open_and_draft_proposals_state(
169 .as_str(), 164 .as_str(),
170 ); 165 );
171 } 166 }
172 }; 167 }
173 } 168 }
174 } 169 }
175 } 170 }
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs
index 6113c0a..0cb1107 100644
--- a/src/bin/git_remote_nostr/push.rs
+++ b/src/bin/git_remote_nostr/push.rs
@@ -792,7 +792,7 @@ fn create_rejected_refspecs_and_remotes_refspecs(
792 ).as_str(), 792 ).as_str(),
793 )?; 793 )?;
794 } 794 }
795 }; 795 }
796 } else { 796 } else {
797 // remote_value oid is not present locally 797 // remote_value oid is not present locally
798 // TODO can we download the remote reference? 798 // TODO can we download the remote reference?