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:
parent
1a6dd90410
commit
e9cb4f08e3
3 changed files with 42 additions and 21 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue