diff --git a/Jenkinsfile b/Jenkinsfile
index bb22af3549fc93f22550fc6b66636ce2568c4c7d..67c012eb3c79bd098479595e6faba0f00418b87d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -393,7 +393,7 @@ pipeline {
                     credentialsId: '2719b702-1298-4e87-8464-5dfc62fbd923',
                     url: 'https://github.com/ufz/ogs-data']]])
                 sh 'rsync -av --delete --exclude .git/ ../ogs/Tests/Data/ .'
-                sh "git add . && git commit -m 'Update'"
+                sh "git diff --quiet && git diff --staged --quiet || git commit -am 'Update'"
                 withCredentials([usernamePassword(
                   credentialsId: '2719b702-1298-4e87-8464-5dfc62fbd923',
                   passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {