[Insight-developers] Utilities/hooks.sh

Brad King brad.king at kitware.com
Wed Oct 6 10:28:44 EDT 2010


On 10/06/2010 10:13 AM, Bill Lorensen wrote:
> On Wed, Oct 6, 2010 at 10:11 AM, Brad King <brad.king at kitware.com> wrote:
>> On 10/06/2010 10:01 AM, Bill Lorensen wrote:
>>> Bill at BILLSLAPTOP ~/ProjectsGIT/ITK/.git/hooks (master)
>>> $ git ls-remote ..
>>> 48e72dd1cd9ebefae0006cba0fafd6a09928bc8c        HEAD
>>> 48e72dd1cd9ebefae0006cba0fafd6a09928bc8c        refs/heads/master
>>
>> Does "~/ProjectsGIT/ITK/.git/.git" exist?  It shouldn't, but it
>> could cause this problem.
>
> Yes.

Delete it.  You must have run "git init" under ".git" once instead
of ".git/hooks".

The "dev.sh" setup script under discussion elsewhere in this thread
should be taught to detect this erroneous case.

-Brad


More information about the Insight-developers mailing list