# SetupForDevelopment.sh: ambiguous argument 'FETCH\_HEAD': both revision and filename

**URL:** <https://discourse.itk.org/t/setupfordevelopment-sh-ambiguous-argument-fetch-head-both-revision-and-filename/479>\
**Category:** Engineering\
**Created:** [December 2, 2017, 3:30am UTC](https://discourse.itk.org/t/setupfordevelopment-sh-ambiguous-argument-fetch-head-both-revision-and-filename/479 "2017-12-02T03:30:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanm](https://discourse.itk.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@seanm](https://discourse.itk.org/u/seanm)\
**Post date:** [December 2, 2017, 3:30am UTC](https://discourse.itk.org/t/setupfordevelopment-sh-ambiguous-argument-fetch-head-both-revision-and-filename/479/1 "2017-12-02T03:30:33Z")

</div>

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

```auto
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
```

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [December 2, 2017, 2:50pm UTC](https://discourse.itk.org/t/setupfordevelopment-sh-ambiguous-argument-fetch-head-both-revision-and-filename/479/2 "2017-12-02T14:50:02Z")

</div>

Thanks for the note, @seanm.

[This patch](http://review.source.kitware.com/#/c/22848/) will address the issue.
