Hello.
I'm keeping a hash register (with sha1 hashes) to check for unwanting file changes on external server.
I found that "cPanel Git Version Control" changes some of my file automatically i.e. hashes too.
Scenario:
I push files from developer server -> to Gitlab, in Gitlab the file have still the same sha1 hash.
I now log into cPanel and go to "Git™ Version Control", clicking manage, and then "pull and deploy", and then "update from remote".
cPanel is now fetching the files from Gitlab (many thousands).
Of these thousands of files, cPanel have now changed the file hash of 58 files. When going into it, I also register the filsize is microscopic smaller in size too.
From my debugging, it seems like it has something to do with whitespace, but im not sure if this is the scenario.
How can I fix this?? I need my files to keep the same hash from when I signed them to my register.
I'm keeping a hash register (with sha1 hashes) to check for unwanting file changes on external server.
I found that "cPanel Git Version Control" changes some of my file automatically i.e. hashes too.
Scenario:
I push files from developer server -> to Gitlab, in Gitlab the file have still the same sha1 hash.
I now log into cPanel and go to "Git™ Version Control", clicking manage, and then "pull and deploy", and then "update from remote".
cPanel is now fetching the files from Gitlab (many thousands).
Of these thousands of files, cPanel have now changed the file hash of 58 files. When going into it, I also register the filsize is microscopic smaller in size too.
From my debugging, it seems like it has something to do with whitespace, but im not sure if this is the scenario.
How can I fix this?? I need my files to keep the same hash from when I signed them to my register.