[Insight-developers] Problem with git hooks

Bill Lorensen bill.lorensen at gmail.com
Mon Aug 23 11:34:16 EDT 2010


This worked for me:
git pull git://itk.org/ITK.git hooks


On Mon, Aug 23, 2010 at 9:47 AM, Brad King <brad.king at kitware.com> wrote:
> On 08/21/2010 11:06 AM, Bill Lorensen wrote:
>> So it seems that the instructions given:
>> -----------------------------------
>> Please initialize your local Git hooks.
>> Paste the following commands into a shell:
>>
>>  cd "c:/lorensen/ProjectsGIT/ITK/.git/hooks"
>>  git init
>>  git pull .. remotes/origin/hooks
>>  cd ../..
>>
>> See http://www.itk.org/Wiki/Git/Hooks for more details.
>> -----------------------------------
>>
>> are incorrect?
>
> They've worked for developers in ParaView and VTK so far, and they
> work for me with ITK.  IIRC you even reported success on the VTK
> list, at least with VTK.
>
>>> git pull .. remotes/origin/hooks
>>> fatal: Couldn't find remote ref remotes/origin/hooks
>>> fatal: The remote end hung up unexpectedly
>
> Let's diagnose the problem.  What is the output of
>
>  cd "c:/lorensen/ProjectsGIT/ITK"
>  git for-each-ref refs/remotes/origin
>
264f84984e53eabaaf113568405270e80056bd15 commit	refs/remotes/origin/HEAD
48e72dd1cd9ebefae0006cba0fafd6a09928bc8c commit	refs/remotes/origin/hooks
264f84984e53eabaaf113568405270e80056bd15 commit	refs/remotes/origin/master
4474933adc92bee42447244cb785ac793122d43a commit	refs/remotes/origin/release

> ?
>
> Also, can you reproduce it in a fresh clone?
>
> -Brad
>


More information about the Insight-developers mailing list