Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Sep 3, 2024
1 parent 29c24c6 commit 67fedfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/git.cr
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ module Shards
end

private def origin_url
@origin_url ||= capture("git ls-remote --get-url origin --bare --git-dir=#{local_path} --work-tree=#{local_path}").strip
@origin_url ||= capture("git -C #{local_path} ls-remote --get-url origin --bare").strip
end

# Returns whether origin URLs have differing hosts and/or paths.
Expand Down

0 comments on commit 67fedfc

Please sign in to comment.