🔨 chore: add support for proxying upstream branch in proxy_virtual_branch method

This commit is contained in:
Nikita Galaiko 2023-10-23 15:22:32 +02:00 committed by GitButler
parent 1925a06ce0
commit 40d24641db

View File

@ -75,6 +75,11 @@ impl Proxy {
pub async fn proxy_virtual_branch(&self, branch: VirtualBranch) -> VirtualBranch {
VirtualBranch {
upstream: if let Some(upstream) = branch.upstream {
Some(self.proxy_remote_branch(upstream).await)
} else {
None
},
commits: join_all(
branch
.commits