Skip to content

Commit

Permalink
ensure we filter out empty refs
Browse files Browse the repository at this point in the history
  • Loading branch information
m1guelpf committed Jul 23, 2024
1 parent 509af95 commit 47d41aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ async fn main() -> Result<()> {

async fn handle_command(commands: Commands, client: &Client) -> Result<()> {
match commands {
Commands::Deploy { slug, r#ref } => run_deploy(slug, r#ref, client).await,
Commands::Deploy { slug, r#ref } => {
run_deploy(slug, r#ref.filter(|s| !s.is_empty()), client).await
},
}
}

Expand Down

0 comments on commit 47d41aa

Please sign in to comment.