This should not be necessary. These permissions should be set on the file in the git repo in the first place.