SetupForDevelopment.sh: ambiguous argument 'FETCH_HEAD': both revision and filename

I’ve just tried to run ./Utilities/SetupForDevelopment.sh, and it errors out with the following:

Setting up git hooks...
Initialized empty Git repository in /Users/sean/external/ITK/.git/.git/
Pulling the hooks...
remote: Counting objects: 202, done.
remote: Compressing objects: 100% (81/81), done.
remote: Total 202 (delta 122), reused 195 (delta 117)
Receiving objects: 100% (202/202), 39.95 KiB | 0 bytes/s, done.
Resolving deltas: 100% (122/122), done.
From http://public.kitware.com/ITK
 * branch            hooks      -> FETCH_HEAD
fatal: ambiguous argument 'FETCH_HEAD': both revision and filename
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
failure during hook setup

Thanks for the note, @seanm.

This patch will address the issue.

2 Likes