On Wed, Mar 26, 2014 at 5:15 AM, Olivier Croquette <
ocroq...@free.fr> wrote:
> I have updated the permissions of a file using:
> git update-index --chmod=+x
>
> After commit, git log -p locally shows:
>
> diff --git a/f.exe b/f.exe
> old mode 100644
> new mode 100755
>
> When I try to push this commit to Gerrit, I get the following error message:
> No changes between prior commit and new commit
You aren't pushing the new commit. Or something.
The block of code that triggers this compares the two root trees by
SHA-1. That SHA-1 computation considers every byte of every file,
every file path, and every file mode. Gerrit saw identical SHA-1s,
which means the tree was not changed.