test-bot: change directory for git rev-parse --verify

This commit is contained in:
Xu Cheng 2016-01-17 15:06:07 +08:00
parent 154d0850e7
commit f92fc98ec0

View File

@ -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]