0

Following this tutorial to the letter, whenever I now run a diff, I get the following:

~~$ git diff
fatal: cannot exec '/Users/john/git-diff-cmd.sh': Permission denied
external diff died, stopping at footer.php.

This is obviously undesirable!! How can I fix it, and how can I get Filemerge and GIT to play nice?

Mild Fuzz
  • 29,463
  • 31
  • 100
  • 148

2 Answers2

4

your script has to be executable:

chmod u+x '/Users/john/git-diff-cmd.sh'
knittl
  • 246,190
  • 53
  • 318
  • 364
3

It looks like you don't have execution privileges for your script file. Go to the terminal and type

chmod a+x /Users/john/git-diff-cmd.sh

and then try running git again.

Seth Johnson
  • 14,762
  • 6
  • 59
  • 85