for git v1.5.2 (and below): chdir to the directory of the target file before executin...