remove unused parameter

This commit is contained in:
Kiril Videlov 2023-06-30 17:20:18 +02:00 committed by Kiril Videlov
parent f9bc13685a
commit 488f7862f5
2 changed files with 1 additions and 9 deletions

View File

@ -437,14 +437,7 @@ impl App {
pub fn push_virtual_branch(&self, project_id: &str, branch_id: &str) -> Result<()> { pub fn push_virtual_branch(&self, project_id: &str, branch_id: &str) -> Result<()> {
let gb_repository = self.gb_repository(project_id)?; let gb_repository = self.gb_repository(project_id)?;
let project = self.gb_project(project_id)?; let project = self.gb_project(project_id)?;
let project_repository = project_repository::Repository::open(&project) virtual_branches::push(&project.path, &gb_repository, branch_id)?;
.context("failed to open project repository")?;
virtual_branches::push(
&project.path,
&gb_repository,
&project_repository,
branch_id,
)?;
Ok(()) Ok(())
} }

View File

@ -1474,7 +1474,6 @@ use std::process::Command;
pub fn push( pub fn push(
project_path: &str, project_path: &str,
gb_repository: &gb_repository::Repository, gb_repository: &gb_repository::Repository,
project_repository: &project_repository::Repository,
branch_id: &str, branch_id: &str,
) -> Result<()> { ) -> Result<()> {
let current_session = gb_repository let current_session = gb_repository