[PATCH] Fix quick-install-doc

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Saturday, August 4, 2007 - 2: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, 8:07 am)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 8:38 am)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 9:00 am)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 9:04 am)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 9:08 am)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 9:14 am)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 9:16 am)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 9:21 am)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 9:27 am)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 10:56 am)
Re: rc4 - make quick-install-doc is broken, rene.scharfe, (Sat Aug 4, 1:19 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 1:21 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 1:45 pm)
[PATCH] Fix quick-install-doc, Johannes Schindelin, (Sat Aug 4, 2:32 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 2:33 pm)
Re: [PATCH] Fix quick-install-doc, rene.scharfe, (Sat Aug 4, 3:09 pm)
Re: rc4 - make quick-install-doc is broken, rene.scharfe, (Sat Aug 4, 3:09 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 3:25 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 3:37 pm)
Re: rc4 - make quick-install-doc is broken, rene.scharfe, (Sat Aug 4, 4:03 pm)
[PATCH] Fix install-doc-quick target, Junio C Hamano, (Sun Aug 5, 12:07 am)
Re: [PATCH] Fix install-doc-quick target, Johannes Schindelin, (Sun Aug 5, 6:12 am)
Re: [PATCH] Fix install-doc-quick target, Johannes Schindelin, (Sun Aug 5, 7:44 am)
Re: [PATCH] Fix install-doc-quick target, Junio C Hamano, (Sun Aug 5, 10:54 am)
Re: [PATCH] Fix install-doc-quick target, Johannes Schindelin, (Sun Aug 5, 11:10 am)
[PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 3:43 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Johannes Schindelin, (Mon Aug 6, 3:50 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Junio C Hamano, (Mon Aug 6, 4:07 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 4:38 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Johannes Schindelin, (Mon Aug 6, 4:43 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 4:49 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Junio C Hamano, (Mon Aug 6, 6:28 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 6:55 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Junio C Hamano, (Mon Aug 6, 8:53 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, rene.scharfe, (Tue Aug 7, 6:55 am)
Re: [PATCH] (Really) Fix install-doc-quick target, Johannes Schindelin, (Tue Aug 7, 7:08 am)