summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-07-29 01:07:11 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2018-07-29 01:07:11 +0100
commita04b7ccb5345d10daa7e7bd256bd8b04dc7fbc16 (patch)
tree8176ec56cfe4b88ea491e12dbfa68a8e1c92a27b
parent1c50be12247cdecfc32a8b342941fc50cac04c29 (diff)
downloadlibgit2-ethomson/nightlies.tar.gz
-rwxr-xr-xci/coverity.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/ci/coverity.sh b/ci/coverity.sh
index 7494e6da6..a97fae8c8 100755
--- a/ci/coverity.sh
+++ b/ci/coverity.sh
@@ -47,10 +47,10 @@ HTML="$(curl \
--silent \
--write-out "\n%{http_code}" \
--form token="$COVERITY_TOKEN" \
- --form email=bs@github.com \
+ --form email=libgit2@gmail.com \
--form file=@libgit2.tgz \
--form version="$SHA" \
- --form description="Travis build" \
+ --form description="libgit2 build" \
https://scan.coverity.com/builds?project=libgit2)"
# Body is everything up to the last line
BODY="$(echo "$HTML" | head -n-1)"
@@ -59,7 +59,7 @@ STATUS_CODE="$(echo "$HTML" | tail -n1)"
echo "${BODY}"
-if [ "${STATUS_CODE}" != "201" ]; then
+if [ "${STATUS_CODE}" != "200" -a "${STATUS_CODE}" != "201" ]; then
echo "Received error code ${STATUS_CODE} from Coverity"
exit 1
fi