Skip to content

Commit

Permalink
cleanup -c
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Sep 3, 2024
1 parent cc0a978 commit ed92839
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 @@ -421,7 +421,7 @@ module Shards
end

private def file_exists?(ref : GitRef, path)
files = capture("git -C #{local_path} ls-tree -r --full-tree --name-only #{Process.quote(ref.to_git_ref)} -- #{Process.quote(path)}")
files = capture("git ls-tree -r --full-tree --name-only #{Process.quote(ref.to_git_ref)} -- #{Process.quote(path)}")
!files.strip.empty?
end

Expand Down

0 comments on commit ed92839

Please sign in to comment.