All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com>
Cc: Jeff King <peff@peff.net>,
	"Shawn O. Pearce" <spearce@spearce.org>,
	git@vger.kernel.org
Subject: Re: Git push failure in the case of SSH to localhost
Date: Wed, 11 Feb 2009 12:23:12 -0800	[thread overview]
Message-ID: <7vvdrgd8pb.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <8e04b5820902111203t344881f6g31f25cfbff5fd822@mail.gmail.com> (Ciprian Dorin's message of "Wed, 11 Feb 2009 22:03:13 +0200")

"Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> writes:

>     I'll merge both Junio's and Jeff's emails into one... My answers bellow.
>
> On Wed, Feb 11, 2009 at 9:40 PM, Junio C Hamano <gitster@pobox.com> wrote:
>> "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com> writes:
>>
>>> On Wed, Feb 11, 2009 at 9:27 PM, Junio C Hamano <gitster@pobox.com> wrote:
>>>
>>>> And why isn't it in $HOME/bin/?
>>>
>>>     No, it is inside .git/bin folder.
>>
>> You are not answering my question.
>>
>> I questioned the sanity of putting the scripts in .git/bin/ per
>> repository.  Why shouldn't a useful script like your "branch-import"
>> available to _all_ your repositories, possibly taking customization per
>> repository from repository's .git/config file, so that it does what is
>> appropriate in each repository?
> ...
>     Both these solutions work fine, except one concern: when moving
> the repository I would also want to move my scripts,...

Define "moving the repository".  More often than not, people move their
repositories with "git clone" than "tar cf - | tar xf -".

No matter how you are moving it to a new location, you would want to have
a working set of "regular environment" you normally work in.  Why aren't
you moving/copying your $HOME/bin at the same time to get a more familiar
and useful environment?  Viewed under this light, I think your "I move my
repository to a new machine" is a made up example that is not interesting
at all, if you ask me.

There are additional security implications.  You can invite a victim to
run "git diff" in your repository which runs your .git/bin/git-diff, for
example.

  reply	other threads:[~2009-02-11 20:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-11 16:24 Git push failure in the case of SSH to localhost Ciprian Dorin, Craciun
2009-02-11 18:05 ` Jeff King
2009-02-11 18:42   ` Ciprian Dorin, Craciun
2009-02-11 18:44     ` Jeff King
2009-02-11 19:03       ` Ciprian Dorin, Craciun
2009-02-11 19:14         ` Shawn O. Pearce
2009-02-11 19:20           ` Ciprian Dorin, Craciun
2009-02-11 19:22             ` Jeff King
2009-02-11 19:32               ` Ciprian Dorin, Craciun
2009-02-11 19:42                 ` Jeff King
2009-02-11 20:03                   ` Ciprian Dorin, Craciun
2009-02-11 20:23                     ` Junio C Hamano [this message]
2009-02-11 20:49                       ` Ciprian Dorin, Craciun
2009-02-11 21:03                         ` Johannes Schindelin
2009-02-11 19:27             ` Junio C Hamano
2009-02-11 19:34               ` Ciprian Dorin, Craciun
2009-02-11 19:40                 ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vvdrgd8pb.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=ciprian.craciun@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    --cc=spearce@spearce.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.