[Insight-developers] Utilities/hooks.sh
Bill Lorensen
bill.lorensen at gmail.com
Tue Oct 5 17:34:34 EDT 2010
Yes.
On Tue, Oct 5, 2010 at 5:21 PM, David Cole <david.cole at kitware.com> wrote:
> And are you able to push to origin, gerrit and stage...? (i.e. -- you have
> passed along your ssh credentials...?)
>
>
> On Tue, Oct 5, 2010 at 4:52 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>>
>> I set this up very early in the itk conversion to git:
>>
>>
>> [ITKPersonal(master)] git remote -v
>> gerrit lorensen at review.source.kitware.com:ITK (fetch)
>> gerrit lorensen at review.source.kitware.com:ITK (push)
>> origin git://itk.org/ITK.git (fetch)
>> origin git at itk.org:ITK.git (push)
>> stage git://itk.org/stage/ITK.git (fetch)
>> stage git at itk.org:stage/ITK.git (push)
>>
>> [ITKPersonal(master)] git config -l | grep remote
>> remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
>> remote.origin.url=git://itk.org/ITK.git
>> remote.origin.pushurl=git at itk.org:ITK.git
>> branch.master.remote=origin
>> remote.gerrit.url=lorensen at review.source.kitware.com:ITK
>> remote.gerrit.fetch=+refs/heads/*:refs/remotes/gerrit/*
>> remote.stage.url=git://itk.org/stage/ITK.git
>> remote.stage.fetch=+refs/heads/*:refs/remotes/stage/*
>> remote.stage.pushurl=git at itk.org:stage/ITK.git
>>
>>
>> On Tue, Oct 5, 2010 at 4:47 PM, David Cole <david.cole at kitware.com> wrote:
>> > Bill,
>> > What does git remote tell you? Or git config -l | grep remote?
>> > Is your main remote named "origin"? Does it point at ITK.git?
>> > davidcole at qwghlm : ITK
>> > $ git remote -v
>> > origin git://itk.org/ITK.git (fetch)
>> > origin git://itk.org/ITK.git (push)
>> > davidcole at qwghlm : ITK
>> > $ git config -l | grep remote
>> > remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
>> > remote.origin.url=git://itk.org/ITK.git
>> > branch.master.remote=origin
>> >
>> > On Tue, Oct 5, 2010 at 4:41 PM, Bill Lorensen <bill.lorensen at gmail.com>
>> > wrote:
>> >>
>> >> I just tried the new script:
>> >> ITKPersonal(master)] Utilities/SetupGitHooks.sh
>> >> Pulling the hooks...
>> >> fatal: Couldn't find remote ref remotes/origin/hooks
>> >> fatal: The remote end hung up unexpectedly
>> >> Setting up the uncrustify hook...
>> >> Setting up the KWStyle hook...
>> >> Done.
>> >>
>> >>
>> >> On Tue, Oct 5, 2010 at 4:39 PM, Bill Lorensen <bill.lorensen at gmail.com>
>> >> wrote:
>> >> > git version 1.7.2.3
>> >> >
>> >> >
>> >> > On Tue, Oct 5, 2010 at 4:30 PM, Matthew McCormick (thewtex)
>> >> > <matt at mmmccormick.com> wrote:
>> >> >> Hi Bill,
>> >> >> Sorry for the confusion. I have added descriptions to the wiki
>> >> >> http://www.itk.org/Wiki/ITK/Git#Hooks
>> >> >> http://www.itk.org/Wiki/Git/Hooks
>> >> >> The script is intended to easily setup the hooks in addition to
>> >> >> configuring
>> >> >> the KWStyle and uncrustify hooks. By running the script, it also
>> >> >> provides a
>> >> >> convenient means to update the hooks.
>> >> >> A patch with a more descriptive name is here:
>> >> >> http://review.source.kitware.com/#change,103
>> >> >>>
>> >> >>> I think it is good to have a script to do the setup perhaps it
>> >> >>> could
>> >> >>> echo more info about what it is doing..
>> >> >>
>> >> >> Please try the proposed changes in the patch.
>> >> >>
>> >> >>>
>> >> >>> I just ran it and got this message:
>> >> >>> cd ../ITKPersonal
>> >> >>> [ITKPersonal(master)] Utilities/hooks.sh
>> >> >>> fatal: Couldn't find remote ref remotes/origin/hooks
>> >> >>> fatal: The remote end hung up unexpectedly
>> >> >>>
>> >> >> Strange that I do not get this message. What version of git are you
>> >> >> running? I have added a change to the patch that might fix the
>> >> >> problem.
>> >> >> Please try it out.
>> >> >> Thanks,
>> >> >> Matt
>> >> >
>> >> _______________________________________________
>> >> Powered by www.kitware.com
>> >>
>> >> Visit other Kitware open-source projects at
>> >> http://www.kitware.com/opensource/opensource.html
>> >>
>> >> Kitware offers ITK Training Courses, for more information visit:
>> >> http://kitware.com/products/protraining.html
>> >>
>> >> Please keep messages on-topic and check the ITK FAQ at:
>> >> http://www.itk.org/Wiki/ITK_FAQ
>> >>
>> >> Follow this link to subscribe/unsubscribe:
>> >> http://www.itk.org/mailman/listinfo/insight-developers
>> >
>> >
>
>
More information about the Insight-developers
mailing list