[PATCH] Fix quick-install-doc

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mark Levedahl <mlevedahl@...>
Cc: Junio C Hamano <junkio@...>, Git Mailing List <git@...>
Date: Saturday, August 4, 2007 - 5:32 pm

The recent work-tree cleanups exposed that the install-doc-quick
script was relying on a strange behaviour predating the work-tree
series: when setting a GIT_DIR, it was assumed that the current
working directory is the root of the working tree.

The recent work-tree series changed that behaviour: now that you can
set the work tree explicitely, the work tree root defaults to
$GIT_DIR/.. if $GIT_DIR has a /.git suffix when that is a parent
directory of the current working directory.

Noticed by Mark Levedahl. Diagnosed by Junio Hamano.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---

	Junio, I did it slightly differently from what I said on IRC: 
	setting the work-tree with "--work-tree" does not work as 
	expected.  Will fix.

 Documentation/install-doc-quick.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/install-doc-quick.sh b/Documentation/install-doc-quick.sh
index e6601bd..5c8b604 100755
--- a/Documentation/install-doc-quick.sh
+++ b/Documentation/install-doc-quick.sh
@@ -19,7 +19,7 @@ GIT_INDEX_FILE=`pwd`/.quick-doc.index
 export GIT_INDEX_FILE
 rm -f "$GIT_INDEX_FILE"
 git read-tree $head
-git checkout-index -a -f --prefix="$mandir"/
+(cd "$mandir"; git checkout-index -a -f)
 
 if test -n "$GZ"; then
 	cd "$mandir"
-- 
1.5.3.rc4.1.g7805


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 11:07 am)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 11:38 am)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 12:00 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 5:33 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 6:37 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 6:25 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 4:45 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 4:21 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 12:04 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 12:14 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 12:21 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 1:56 pm)
[PATCH] Fix quick-install-doc, Johannes Schindelin, (Sat Aug 4, 5:32 pm)
Re: [PATCH] Fix quick-install-doc, , (Sat Aug 4, 6:09 pm)
[PATCH] Fix install-doc-quick target, Junio C Hamano, (Sun Aug 5, 3:07 am)
[PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 6:43 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Johannes Schindelin, (Mon Aug 6, 6:50 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Junio C Hamano, (Mon Aug 6, 7:07 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 7:38 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Junio C Hamano, (Mon Aug 6, 9:28 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 9:55 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Junio C Hamano, (Mon Aug 6, 11:53 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Johannes Schindelin, (Tue Aug 7, 10:08 am)
Re: [PATCH] (Really) Fix install-doc-quick target, Johannes Schindelin, (Mon Aug 6, 7:43 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 7:49 pm)
Re: [PATCH] Fix install-doc-quick target, Johannes Schindelin, (Sun Aug 5, 10:44 am)
Re: [PATCH] Fix install-doc-quick target, Johannes Schindelin, (Sun Aug 5, 9:12 am)
Re: [PATCH] Fix install-doc-quick target, Junio C Hamano, (Sun Aug 5, 1:54 pm)
Re: [PATCH] Fix install-doc-quick target, Johannes Schindelin, (Sun Aug 5, 2:10 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 12:08 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 12:16 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 12:27 pm)