trying to set filemode = true at global level

Might not work though: http://stackoverflow.com/a/12458548/150772:

git-clone or git-init will probe and set core.fileMode false if
appropriate when the repository is created.
ensure we pull the right branch of z