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@xxxxxx> --- 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@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html