diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-21 15:35:19 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-21 15:35:19 +0000 |
| commit | ee7e115b2d0e6a6eee42eb875199c965696017d5 (patch) | |
| tree | 634ab7f960d56dc9073ebc85baf9fa6c193a32c8 /src/git/protocol.rs | |
| parent | 97e21b62eab89bab1456db7df27df8f1c85399f0 (diff) | |
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?
Diffstat (limited to 'src/git/protocol.rs')
| -rw-r--r-- | src/git/protocol.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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 { | |||
| 157 | } | 157 | } |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | /// Get the git command name (without "git-" prefix) for subprocess invocation | ||
| 161 | pub fn command_name(&self) -> &'static str { | ||
| 162 | match self { | ||
| 163 | Self::UploadPack => "upload-pack", | ||
| 164 | Self::ReceivePack => "receive-pack", | ||
| 165 | } | ||
| 166 | } | ||
| 167 | |||
| 160 | /// Get the content type for the service advertisement | 168 | /// Get the content type for the service advertisement |
| 161 | pub fn advertisement_content_type(&self) -> &'static str { | 169 | pub fn advertisement_content_type(&self) -> &'static str { |
| 162 | match self { | 170 | match self { |