diff --git a/hooks/post-applypatch b/hooks/post-applypatch
index ff5d09fbab1d287134eca25dc6de12597af0b546..5ffb2fc043d04e9c13593714118a4ceeef06d12c 100755
--- a/hooks/post-applypatch
+++ b/hooks/post-applypatch
@@ -3,10 +3,10 @@
 REV=`git rev-parse HEAD`
 echo "#define GIT_VERSION \"$REV\"" > revision.tmp
 
-diff revision.tmp src/revision.h 2>&1 > /dev/null
+diff revision.tmp src/OPALrevision.h 2>&1 > /dev/null
 
 if [ $? -eq 1 ];then
    mv revision.tmp src/OPALrevision.h
 else
    rm revision.tmp
-fi
+fi
\ No newline at end of file
diff --git a/hooks/post-checkout b/hooks/post-checkout
index ff5d09fbab1d287134eca25dc6de12597af0b546..5ffb2fc043d04e9c13593714118a4ceeef06d12c 100755
--- a/hooks/post-checkout
+++ b/hooks/post-checkout
@@ -3,10 +3,10 @@
 REV=`git rev-parse HEAD`
 echo "#define GIT_VERSION \"$REV\"" > revision.tmp
 
-diff revision.tmp src/revision.h 2>&1 > /dev/null
+diff revision.tmp src/OPALrevision.h 2>&1 > /dev/null
 
 if [ $? -eq 1 ];then
    mv revision.tmp src/OPALrevision.h
 else
    rm revision.tmp
-fi
+fi
\ No newline at end of file
diff --git a/hooks/post-commit b/hooks/post-commit
index ff5d09fbab1d287134eca25dc6de12597af0b546..5ffb2fc043d04e9c13593714118a4ceeef06d12c 100755
--- a/hooks/post-commit
+++ b/hooks/post-commit
@@ -3,10 +3,10 @@
 REV=`git rev-parse HEAD`
 echo "#define GIT_VERSION \"$REV\"" > revision.tmp
 
-diff revision.tmp src/revision.h 2>&1 > /dev/null
+diff revision.tmp src/OPALrevision.h 2>&1 > /dev/null
 
 if [ $? -eq 1 ];then
    mv revision.tmp src/OPALrevision.h
 else
    rm revision.tmp
-fi
+fi
\ No newline at end of file
diff --git a/hooks/post-merge b/hooks/post-merge
index ff5d09fbab1d287134eca25dc6de12597af0b546..5ffb2fc043d04e9c13593714118a4ceeef06d12c 100755
--- a/hooks/post-merge
+++ b/hooks/post-merge
@@ -3,10 +3,10 @@
 REV=`git rev-parse HEAD`
 echo "#define GIT_VERSION \"$REV\"" > revision.tmp
 
-diff revision.tmp src/revision.h 2>&1 > /dev/null
+diff revision.tmp src/OPALrevision.h 2>&1 > /dev/null
 
 if [ $? -eq 1 ];then
    mv revision.tmp src/OPALrevision.h
 else
    rm revision.tmp
-fi
+fi
\ No newline at end of file