Skip to content

Commit

Permalink
git diff returns 0 if no files are modified
Browse files Browse the repository at this point in the history
  • Loading branch information
wpt-pr-bot committed May 14, 2019
1 parent e0fd5d5 commit 68ceaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ci/website_build.sh
Expand Up @@ -78,7 +78,7 @@ touch .nojekyll
# Publish the website by pushing the built contents to the `gh-pages` branch
git add .

if ! git diff --exit-code --quiet --staged ; then
if git diff --exit-code --quiet --staged ; then
echo No change to the website contents. Exiting without publishing.

exit ${neutral_status}
Expand Down

0 comments on commit 68ceaae

Please sign in to comment.