test-bot: change directory for git rev-parse --verify
This commit is contained in:
parent
154d0850e7
commit
f92fc98ec0
@ -213,7 +213,7 @@ module Homebrew
|
||||
@repository = @tap.path
|
||||
@skip_homebrew = options.fetch(:skip_homebrew, false)
|
||||
|
||||
if quiet_system "git", "rev-parse", "--verify", "-q", argument
|
||||
if quiet_system "git", "-C", @repository.to_s, "rev-parse", "--verify", "-q", argument
|
||||
@hash = argument
|
||||
elsif url_match = argument.match(HOMEBREW_PULL_OR_COMMIT_URL_REGEX)
|
||||
@url = url_match[0]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user