netz98/n98-magerun — pull request #65 by fbrnc (2012-12-14 22:35:44+00:00)
Title: Store executable flag for n98-magerun.phar

I changed the executable flag for n98-magerun.phar. Obviously this needs to be done every time a new phar file is generated. These steps worked for me:

1) Make sure filemode isn't ignored:
git config core.filemode true

2) Changing mode in index:
git update-index --chmod=+x n98-magerun.phar

3) Actually changing more in filesystem
chmod +x n98-magerun.phar

4) Adding
git add n98-magerun.phar

5) Commit
git commit -m "Changed file mode"

I'm not sure if steps 3 and 4 are both neeed, but this worked so far.

It would be very handy if the phar file was always executable. Maybe these steps could be included into your phar-build-routine.