Re: Git push failure in the case of SSH to localhost
On Wed, Feb 11, 2009 at 9:27 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 26 quoted lines
> "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> writes:
>
>> On Wed, Feb 11, 2009 at 9:14 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
>>> "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> wrote:
>>>>
>>>> Here is what I'm trying to accomplish: I want to add to the git
>>>> search path also the folder ${GIT_DIR}/bin if this already exists...
>>>> (This allows me to have repository specific commands...)
>>>
>>> for f in `cd $(git rev-parse --git-dir)/bin && ls *`; do
>>> git config alias.$f '!$(git rev-parse --git-dir)/bin/'$f
>>> done
>>>
>>> No need to patch git.
>>>
>>> --
>>> Shawn.
>>
>> :) Yes I know about the alias trick...
>>
>> But I find it easier to just create a bin folder and drop my
>> scripts there... (For example git-branch-import that takes a new
>> branch name and an URL and creates the branch with no ancestry and
>> knows http, ftp, svn, tar.{gz,bz2}, zip, etc...)
>
> And why isn't it in $HOME/bin/? No, it is inside .git/bin folder. I like to think to my bin folder
like the hooks folder... This way when I move a repository I move the
hooks and the specific commands.
Ciprian.