Merge pull request #1444 from gitbutlerapp/proxy-virtual-branch-with-upstream

🔨 chore: add support for proxying upstream branch in `proxy_virtual_b…
This commit is contained in:
Nikita Galaiko 2023-10-23 15:29:04 +02:00 committed by GitHub
commit c3f63b5b3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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