1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 08:44:09 +02:00

use extra app directories for git operations

This commit is contained in:
Robin Appelman 2026-03-06 00:15:35 +01:00
commit e9cb4f08e3
3 changed files with 42 additions and 21 deletions

View file

@ -373,15 +373,16 @@ async fn main() -> Result<ExitCode> {
proxy(docker, config).await?;
}
HazeArgs::Git { operation } => match operation {
GitOperation::Checkout { branch } => {
GitOperation::Checkout { branch, verbose } => {
let sources = Sources::new(&config.sources_root)?;
checkout_all(
&config.sources_root,
&config,
&branch.unwrap_or_else(|| sources.get_server_version_branch()),
verbose,
)?;
}
GitOperation::Pull => {
pull_all(&config.sources_root)?;
pull_all(&config)?;
}
},
HazeArgs::Env {