From 47d41aa3ec1b198d5ceacbda674c1886acbab020 Mon Sep 17 00:00:00 2001 From: Miguel Piedrafita Date: Tue, 23 Jul 2024 07:22:37 -0400 Subject: [PATCH] ensure we filter out empty refs --- crates/cli/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 6892a47..6c6c0d8 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -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 + }, } }