To trigger a git hook after a pull i made a post-merge hook. The script looks like this:
#!/bin/sh git log > gitlog.txt
The file is call
You may want to check if there is no CR or similar invisible character behind the sh.
This happens sometimes when a file passed through a windows system.
I think in vi it will show up a ^M
If that is the case remove it and it should work.