I'm trying to add a custom merge strategy similar to the one in this question: Git merge conflict to always take the newest file
I've saved the script as git-merge-latest.sh and added the following lines to .git/config:
[merge "latest"]
    name = select latest file merge driver
    driver = git-merge-latest.sh %O %A %B
However, when I run git pull --strategy latest, I get the message:
Could not find merge strategy 'latest'.
Available strategies are: octopus ours recursive resolve subtree.
I've tried checking git config merge.latest.driver, which returns the expected output. I also changed the value of driver to true just to verify that it wasn't a problem with finding the script. 
This happens on two different systems running git 1.8.2.2 and 1.7.9.5. What am I doing wrong?
 
     
    