diff --git a/tools/integration.sh b/tools/integration.sh
index 64272fa5da..fb647f20ba 100644
--- a/tools/integration.sh
+++ b/tools/integration.sh
@@ -89,7 +89,7 @@ for PROJECT in $PROJECTS ; do
     sudo chown -R $USER $REPODIR/$SHORT_PROJECT
     (cd $REPODIR/requirements && python update.py $REPODIR/$SHORT_PROJECT)
     pushd $REPODIR/$SHORT_PROJECT
-    if ! git diff --quiet ; then
+    if ! git diff --exit-code > /dev/null; then
         git commit -a -m'Update requirements'
     fi
     popd