upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/lib/git
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-09-12 16:54:52 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-09-12 16:54:52 +0100
commit5e958f48e58712736e6394f15b91997ba5231e01 (patch)
tree3eb7393eb4c4fcacfe7ca9791c7499cca1b36aa9 /src/lib/git
parentca33d4d2effff63986038c94e69a7484ddfa1839 (diff)
fix(remote): `push` status updates
push needs to use push_transfer_progress rather than transfer_progress
Diffstat (limited to 'src/lib/git')
-rw-r--r--src/lib/git/mod.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/git/mod.rs b/src/lib/git/mod.rs
index 00d84f6..fb7ae74 100644
--- a/src/lib/git/mod.rs
+++ b/src/lib/git/mod.rs
@@ -765,12 +765,12 @@ fn oid_to_u8_20_bytes(oid: &Oid) -> [u8; 20] {
765 ] 765 ]
766} 766}
767 767
768// fn oid_to_shorthand_string(oid: Oid) -> Result<String> { 768pub fn oid_to_shorthand_string(oid: Oid) -> Result<String> {
769// let binding = oid.to_string(); 769 let binding = oid.to_string();
770// let b = binding.as_bytes(); 770 let b = binding.as_bytes();
771// String::from_utf8(vec![b[0], b[1], b[2], b[3], b[4], b[5], b[6]]) 771 String::from_utf8(vec![b[0], b[1], b[2], b[3], b[4], b[5], b[6]])
772// .context("oid should always start with 7 u8 btyes of utf8") 772 .context("oid should always start with 7 u8 btyes of utf8")
773// } 773}
774 774
775// fn oid_to_sha1_string(oid: Oid) -> Result<String> { 775// fn oid_to_sha1_string(oid: Oid) -> Result<String> {
776// let b = oid.as_bytes(); 776// let b = oid.as_bytes();