From: A Large Angry SCM <gitzilla@gmail.com>
To: Jeff King <peff@peff.net>
Cc: Junio C Hamano <gitster@pobox.com>, Johannes Sixt <j6t@kdbg.org>,
Fritz Anderson <fritza@uchicago.edu>,
git@vger.kernel.org, Daniel Barkalow <barkalow@iabervon.org>
Subject: Re: "fatal: index-pack failed" on git-clone
Date: Thu, 09 Jul 2009 19:29:27 -0400 [thread overview]
Message-ID: <4A567D57.7060602@gmail.com> (raw)
In-Reply-To: <20090709063735.GA22544@coredump.intra.peff.net>
Jeff King wrote:
>
> Signed-off-by: Jeff King <peff@peff.net>
> ---
> Makefile | 14 +++++++-------
> 1 files changed, 7 insertions(+), 7 deletions(-)
>
> 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"
>
This breaks the install if ${bindir} == ${execdir}. The following is
needed on top Peff's patch.
diff --git a/Makefile b/Makefile
index 311ce7d..ec0fddf 100644
--- a/Makefile
+++ b/Makefile
@@ -1641,10 +1641,11 @@ ifneq (,$X)
endif
bindir=$$(cd '$(DESTDIR_SQ)$(bindir_SQ)' && pwd) && \
execdir=$$(cd '$(DESTDIR_SQ)$(gitexec_instdir_SQ)' && pwd) && \
- { $(RM) "$$execdir/git$X" && \
- test -z "$(NO_CROSS_DIRECTORY_HARDLINKS)" && \
- ln "$$bindir/git$X" "$$execdir/git$X" 2>/dev/null || \
- cp "$$bindir/git$X" "$$execdir/git$X"; } && \
+ { test "$$bindir/git$X" = "$$execdir/git$X" || \
+ { $(RM) "$$execdir/git$X" && \
+ test -z "$(NO_CROSS_DIRECTORY_HARDLINKS)" && \
+ 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$X" "$$execdir/$$p" 2>/dev/null || \
next prev parent reply other threads:[~2009-07-09 23:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-08 15:58 "fatal: index-pack failed" on git-clone Fritz Anderson
2009-07-08 16:42 ` Junio C Hamano
2009-07-08 17:10 ` Fritz Anderson
2009-07-08 17:34 ` Junio C Hamano
2009-07-08 18:22 ` Fritz Anderson
2009-07-08 18:49 ` Junio C Hamano
2009-07-08 19:05 ` Daniel Barkalow
2009-07-08 20:05 ` Fritz Anderson
2009-07-08 20:23 ` Fritz Anderson
2009-07-08 20:42 ` Johannes Sixt
2009-07-08 21:12 ` Jeff King
2009-07-08 21:27 ` Fritz Anderson
2009-07-09 18:11 ` Johannes Sixt
2009-07-08 22:48 ` Junio C Hamano
2009-07-09 6:37 ` Jeff King
2009-07-09 8:42 ` Michael J Gruber
2009-07-09 23:29 ` A Large Angry SCM [this message]
2009-07-13 4:52 ` Jeff King
-- strict thread matches above, loose matches on Subject: below --
2009-07-09 8:06 Johannes Sixt
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=4A567D57.7060602@gmail.com \
--to=gitzilla@gmail.com \
--cc=barkalow@iabervon.org \
--cc=fritza@uchicago.edu \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j6t@kdbg.org \
--cc=peff@peff.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).