mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-07 10:26:45 +03:00
🔨 chore: add support for proxying upstream branch in proxy_virtual_branch
method
This commit is contained in:
parent
1925a06ce0
commit
40d24641db
@ -75,6 +75,11 @@ impl Proxy {
|
|||||||
|
|
||||||
pub async fn proxy_virtual_branch(&self, branch: VirtualBranch) -> VirtualBranch {
|
pub async fn proxy_virtual_branch(&self, branch: VirtualBranch) -> VirtualBranch {
|
||||||
VirtualBranch {
|
VirtualBranch {
|
||||||
|
upstream: if let Some(upstream) = branch.upstream {
|
||||||
|
Some(self.proxy_remote_branch(upstream).await)
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
},
|
||||||
commits: join_all(
|
commits: join_all(
|
||||||
branch
|
branch
|
||||||
.commits
|
.commits
|
||||||
|
Loading…
Reference in New Issue
Block a user