diff --git a/ci-tools/update-nixpkgs b/ci-tools/update-nixpkgs
index f30bc254e558e3149c230d1fe6be49c45ab693e4..bdd0d2d2f8ec3f5bec16706817d264e13f9fb5a2 100755
--- a/ci-tools/update-nixpkgs
+++ b/ci-tools/update-nixpkgs
@@ -42,7 +42,7 @@ git checkout "${TARGET_BRANCH}" || git checkout -b "${TARGET_BRANCH}"
 nix-shell ./shell.nix --run 'update-nixpkgs --dry-run'
 
 # Show us what we did
-if git diff --exit-code; then
+if git diff --exit-code origin/develop...; then
     echo "No changes."
     exit 0
 fi