From 5914fb9df558922ef5f5116b434dedbc3b071f57 Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Mon, 2 Sep 2024 21:29:05 -0700 Subject: [PATCH] test using `git config --get remote.origin.url` --- src/resolvers/git.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/resolvers/git.cr b/src/resolvers/git.cr index 19179183..af959b6c 100644 --- a/src/resolvers/git.cr +++ b/src/resolvers/git.cr @@ -370,7 +370,7 @@ module Shards end private def origin_url - @origin_url ||= capture("git -C #{local_path} ls-remote --get-url origin --bare").strip + @origin_url ||= capture("git -C #{local_path} config --get remote.origin.url").strip end # Returns whether origin URLs have differing hosts and/or paths. @@ -450,7 +450,7 @@ module Shards Dir.exists?(path) || raise(Error.new("Path #{path} does not exist")) end - Log.debug { "command: `#{command}` path: `#{path}` capture: `#{capture}` local_path: `#{local_path}`" } + Log.debug { "command: `#{command}` path: `#{path}` capture: `#{capture}`" } output = capture ? IO::Memory.new : Process::Redirect::Close error = IO::Memory.new