mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-03 15:33:13 +03:00
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:
commit
c3f63b5b3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user