Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

fix(git): use raw config value for remote URL to avoid insteadOf rewrites (#1546)

Volkan Bicerdbf403c6a640
diff --git a/src/git/repository/remotes.rs b/src/git/repository/remotes.rs
index e8cb51064..963deb4a3 100644
--- a/src/git/repository/remotes.rs
+++ b/src/git/repository/remotes.rs
@@ -59,7 +59,7 @@ impl Repository {
/// Get the URL for a remote, if configured.
pub fn remote_url(&self, remote: &str) -> Option<String> {
- self.run_command(&["remote", "get-url", remote])
+ self.run_command(&["config", &format!("remote.{}.url", remote)])
.ok()
.map(|url| url.trim().to_string())
.filter(|url| !url.is_empty())