upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/git.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-08-18 08:04:49 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-08-18 08:04:49 +0100
commit948c8595acea9a783a38002371c40185868ce923 (patch)
tree10dce3b3dc487e5d27aee706d64738bd72f1e2ce /src/git.rs
parent5618fd9883d45de1443a40abada944cbe3bb8dfd (diff)
feat(remote): `push` publish merge event
when a merge commit is being pushed that merges a patch in a proposal
Diffstat (limited to 'src/git.rs')
-rw-r--r--src/git.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git.rs b/src/git.rs
index c351a27..eebca29 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -787,7 +787,7 @@ pub fn oid_to_sha1(oid: &Oid) -> Sha1Hash {
787} 787}
788 788
789/// `Sha1Hash` to git2 `Oid` object 789/// `Sha1Hash` to git2 `Oid` object
790fn sha1_to_oid(hash: &Sha1Hash) -> Result<Oid> { 790pub fn sha1_to_oid(hash: &Sha1Hash) -> Result<Oid> {
791 Oid::from_bytes(hash.as_byte_array()).context("Sha1Hash bytes failed to produce a valid Oid") 791 Oid::from_bytes(hash.as_byte_array()).context("Sha1Hash bytes failed to produce a valid Oid")
792} 792}
793 793