From ee7e115b2d0e6a6eee42eb875199c965696017d5 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 21 Nov 2025 15:35:19 +0000 Subject: fixed http clone but do we really nedd to create a blank commit? I dont think ngit-relay does that. Do we need to se the default branch or is this automatic? --- src/git/protocol.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/git/protocol.rs') diff --git a/src/git/protocol.rs b/src/git/protocol.rs index 84da131..93177de 100644 --- a/src/git/protocol.rs +++ b/src/git/protocol.rs @@ -157,6 +157,14 @@ impl GitService { } } + /// Get the git command name (without "git-" prefix) for subprocess invocation + pub fn command_name(&self) -> &'static str { + match self { + Self::UploadPack => "upload-pack", + Self::ReceivePack => "receive-pack", + } + } + /// Get the content type for the service advertisement pub fn advertisement_content_type(&self) -> &'static str { match self { -- cgit v1.2.3