# [commit 4ecbc178704] Incosistency?

7 messages from 2009-07-14 to 2009-07-17. Participants: Unknown, Jeff King, Johannes Schindelin, Thomas Adam.
Thread: https://gitlist.dev/t/20112

## Unknown, 2009-07-14 21:41

Subject: [commit 4ecbc178704] Incosistency?
Message-ID: <Pine.LNX.4.64.0907142335210.31779@cube>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0907142335210.31779%40cube

```
commit 4ecbc178704ca6c1027a38483e98f5fe493b1322
Author: Jeff King <peff@peff.net>
Date:   Thu Jul 9 02:37:35 2009 -0400

bla bla.. some strange SUDO fix (who the hell uses git that way?)
I dont like it.. git-add in libexecdir was good!

diff --git a/Makefile b/Makefile
index 78cc113..311ce7d 100644
--- a/Makefile
+++ b/Makefile
@@ -1641,15 +1641,15 @@ ifneq (,$X)
  endif
         bindir=$$(cd '$(DESTDIR_SQ)$(bindir_SQ)' && pwd) && \
         execdir=$$(cd '$(DESTDIR_SQ)$(gitexec_instdir_SQ)' && pwd) && \
-       { $(RM) "$$execdir/git-add$X" && \
+       { $(RM) "$$execdir/git$X" && \
                 test -z "$(NO_CROSS_DIRECTORY_HARDLINKS)" && \
-               ln "$$bindir/git$X" "$$execdir/git-add$X" 2>/dev/null || \
-               cp "$$bindir/git$X" "$$execdir/git-add$X"; } && \
-       { for p in $(filter-out git-add$X,$(BUILT_INS)); do \
+               ln "$$bindir/git$X" "$$execdir/git$X" 2>/dev/null || \
+               cp "$$bindir/git$X" "$$execdir/git$X"; } && \
+       { for p in $(BUILT_INS); do \
                 $(RM) "$$execdir/$$p" && \
-               ln "$$execdir/git-add$X" "$$execdir/$$p" 2>/dev/null || \
-               ln -s "git-add$X" "$$execdir/$$p" 2>/dev/null || \
-               cp "$$execdir/git-add$X" "$$execdir/$$p" || exit; \
+               ln "$$execdir/git$X" "$$execdir/$$p" 2>/dev/null || \
+               ln -s "git$X" "$$execdir/$$p" 2>/dev/null || \
+               cp "$$execdir/git$X" "$$execdir/$$p" || exit; \
           done; } && \
         ./check_bindir "z$$bindir" "z$$execdir" "$$bindir/git-add$X"

Isnt check_bindir is broken now?
git-add is no more..

```

## Jeff King, 2009-07-14 21:48

Subject: Re: [commit 4ecbc178704] Incosistency?
Message-ID: <20090714214852.GA2786@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20090714214852.GA2786%40coredump.intra.peff.net
In-Reply-To: <Pine.LNX.4.64.0907142335210.31779@cube>

```
On Tue, Jul 14, 2009 at 11:41:40PM +0200, Unknown wrote:

> commit 4ecbc178704ca6c1027a38483e98f5fe493b1322
> Author: Jeff King <peff@peff.net>
> Date:   Thu Jul 9 02:37:35 2009 -0400
> 
> bla bla.. some strange SUDO fix (who the hell uses git that way?)
> I dont like it.. git-add in libexecdir was good!

Hmm. I think I wrote a better commit message than that...

> -       { for p in $(filter-out git-add$X,$(BUILT_INS)); do \
> +               ln "$$bindir/git$X" "$$execdir/git$X" 2>/dev/null || \
> +               cp "$$bindir/git$X" "$$execdir/git$X"; } && \
> +       { for p in $(BUILT_INS); do \
>                 $(RM) "$$execdir/$$p" && \
> -               ln "$$execdir/git-add$X" "$$execdir/$$p" 2>/dev/null || \
> -               ln -s "git-add$X" "$$execdir/$$p" 2>/dev/null || \
> -               cp "$$execdir/git-add$X" "$$execdir/$$p" || exit; \
> +               ln "$$execdir/git$X" "$$execdir/$$p" 2>/dev/null || \
> +               ln -s "git$X" "$$execdir/$$p" 2>/dev/null || \
> +               cp "$$execdir/git$X" "$$execdir/$$p" || exit; \
>           done; } && \
>         ./check_bindir "z$$bindir" "z$$execdir" "$$bindir/git-add$X"
> 
> Isnt check_bindir is broken now?
> git-add is no more..

No. Two things you are missing:

  1. "git-add" still goes in exec-dir. It's just not the magic one we do
     separately (see how we no longer need to use filter-out?).

  2. check_bindir is actually about looking for dashed-form commands in
     the $bindir, which would indicate cruft from an older installed
     version of git. We can't use "git" for this, because that is the
     command that is _supposed_ to be in $bindir.

-Peff

```

## Johannes Schindelin, 2009-07-14 22:30

Subject: Re: [commit 4ecbc178704] Incosistency?
Message-ID: <alpine.DEB.1.00.0907150030180.3155@pacific.mpi-cbg.de>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0907150030180.3155%40pacific.mpi-cbg.de
In-Reply-To: <20090714214852.GA2786@coredump.intra.peff.net>

```
Hi,

On Tue, 14 Jul 2009, Jeff King wrote:

> On Tue, Jul 14, 2009 at 11:41:40PM +0200, Unknown wrote:
> 
> > commit 4ecbc178704ca6c1027a38483e98f5fe493b1322
> > Author: Jeff King <peff@peff.net>
> > Date:   Thu Jul 9 02:37:35 2009 -0400
> > 
> > bla bla.. some strange SUDO fix (who the hell uses git that way?)
> > I dont like it.. git-add in libexecdir was good!
> 
> Hmm. I think I wrote a better commit message than that...

See?  No good deed goes unpunished.

Ciao,
Dscho

```

## Thomas Adam, 2009-07-14 22:42

Subject: Re: [commit 4ecbc178704] Incosistency?
Message-ID: <18071eea0907141542g46d9deb2k1647cabc998e61ea@mail.gmail.com>
URL: https://gitlist.dev/e/18071eea0907141542g46d9deb2k1647cabc998e61ea%40mail.gmail.com
In-Reply-To: <Pine.LNX.4.64.0907142335210.31779@cube>

```
Dear me --

2009/7/14 Unknown <borg@uu3.net>:
> commit 4ecbc178704ca6c1027a38483e98f5fe493b1322
> Author: Jeff King <peff@peff.net>
> Date:   Thu Jul 9 02:37:35 2009 -0400
>
> bla bla.. some strange SUDO fix (who the hell uses git that way?)
> I dont like it.. git-add in libexecdir was good!

No, your understanding of that stinks.  The test, *without* your
so-called patch wotk just fine.

-- Thomas Adam

```

## Unknown, 2009-07-15 08:32

Subject: Re: [commit 4ecbc178704] Incosistency?
Message-ID: <Pine.LNX.4.64.0907151028050.10773@cube>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0907151028050.10773%40cube
In-Reply-To: <20090714214852.GA2786@coredump.intra.peff.net>

```
On Tue, 14 Jul 2009, Jeff King wrote:
> Hmm. I think I wrote a better commit message than that...
Yes you did :)

> No. Two things you are missing:
>
>  1. "git-add" still goes in exec-dir. It's just not the magic one we do
>     separately (see how we no longer need to use filter-out?).
Right. but git-add now is a link to git. Now we have one more file out 
there.

>  2. check_bindir is actually about looking for dashed-form commands in
>     the $bindir, which would indicate cruft from an older installed
>     version of git. We can't use "git" for this, because that is the
>     command that is _supposed_ to be in $bindir.
Indeed. Thanks for clarification.

Regards,
Borg

```

## Jeff King, 2009-07-15 09:42

Subject: Re: [commit 4ecbc178704] Incosistency?
Message-ID: <20090715094252.GA26048@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20090715094252.GA26048%40coredump.intra.peff.net
In-Reply-To: <Pine.LNX.4.64.0907151028050.10773@cube>

```
On Wed, Jul 15, 2009 at 10:32:32AM +0200, Unknown wrote:

> > 1. "git-add" still goes in exec-dir. It's just not the magic one we do
> >    separately (see how we no longer need to use filter-out?).
> Right. but git-add now is a link to git. Now we have one more file
> out there.

Sorry, I don't understand the significance. Is having 'git' in the
execdir causing some kind of problem?

I agree that it shouldn't be necessary for most sane setups, but sadly
there are some insane ones, and I don't think this solution should be
hurting anyone else. Am I wrong?

-Peff

```

## Unknown, 2009-07-17 17:42

Subject: Re: [commit 4ecbc178704] Incosistency?
Message-ID: <Pine.LNX.4.64.0907171939350.5833@cube>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0907171939350.5833%40cube
In-Reply-To: <20090715094252.GA26048@coredump.intra.peff.net>

```
Sorry for long answer.. my CRT died.. and I had to get temp replacement.

After resolving conflicts it should work clean on my old cygwin too.
So no problem. I think its best to close this topic.

Regards,
Borg

On Wed, 15 Jul 2009, Jeff King wrote:
> Sorry, I don't understand the significance. Is having 'git' in the
> execdir causing some kind of problem?
>
> I agree that it shouldn't be necessary for most sane setups, but sadly
> there are some insane ones, and I don't think this solution should be
> hurting anyone else. Am I wrong?
>
> -Peff
>

```
