diff options
| author | Mike McQuaid | 2016-04-12 11:12:23 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2016-04-12 11:12:23 +0100 | 
| commit | 891dcc7c27ad1b41e8b9910eee41bc012fb9222b (patch) | |
| tree | 30192176c988dab5ada4467de82c2d6ace347277 | |
| parent | 0c85113053a08c270a8068d4af2013f5758b3a21 (diff) | |
| download | brew-891dcc7c27ad1b41e8b9910eee41bc012fb9222b.tar.bz2 | |
update: use official GitHub SHA API. (#75)
This is coming out of preview shortly so use the new API content-type.
| -rw-r--r-- | Library/Homebrew/cmd/update.sh | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index a36b25fb0..cc8d62608 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -320,7 +320,7 @@ EOS          UPSTREAM_SHA_HTTP_CODE="$("$HOMEBREW_CURL" --silent '--max-time' 3 \             --output /dev/null --write-out "%{http_code}" \             --user-agent "$HOMEBREW_USER_AGENT_CURL" \ -           --header "Accept: application/vnd.github.chitauri-preview+sha" \ +           --header "Accept: application/vnd.github.v3.sha" \             --header "If-None-Match: \"$UPSTREAM_BRANCH_LOCAL_SHA\"" \             "https://api.github.com/repos/$UPSTREAM_REPOSITORY/commits/$UPSTREAM_BRANCH")"          [[ "$UPSTREAM_SHA_HTTP_CODE" = "304" ]] && exit | 
