From c475b0a25ec6d1cc9092a42e58e597dd3fd9f0a8 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Wed, 11 Mar 2026 09:40:50 -0400 Subject: [PATCH] Add warning when no git remote is configured during `arc init` Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/crates/arc-cli/src/init.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/crates/arc-cli/src/init.rs b/lib/crates/arc-cli/src/init.rs index 31935ccdc..415601232 100644 --- a/lib/crates/arc-cli/src/init.rs +++ b/lib/crates/arc-cli/src/init.rs @@ -116,7 +116,21 @@ async fn check_github_app_installation() { .output() { Ok(o) if o.status.success() => o, - _ => return, // No origin remote — skip silently + _ => { + let yellow = console::Style::new().yellow(); + let dim = console::Style::new().dim(); + eprintln!( + "\n {} No git remote found — skipping GitHub App check", + yellow.apply_to("!") + ); + eprintln!( + " {}", + dim.apply_to( + "Run `git remote add origin ` then `arc install` to set up the GitHub App" + ) + ); + return; + } }; let remote_url = match String::from_utf8(output.stdout) {