Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ma/doc-diff-usage-fix'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 7 Feb 2019 06:05:29 +0000
(22:05 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 7 Feb 2019 06:05:30 +0000
(22:05 -0800)
Running "Documentation/doc-diff x" from anywhere other than the
top-level of the working tree did not show the usage string
correctly, which has been fixed.
* ma/doc-diff-usage-fix:
doc-diff: don't `cd_to_toplevel`
Documentation/doc-diff
patch
|
blob
|
history
raw
(from parent 1:
9c90dab
)
diff --git
a/Documentation/doc-diff
b/Documentation/doc-diff
index dfd9418778a80a209e8ceb43aa94dbb4259f91db..32c83dd26f4adf87fd9d6a3ebc6400f6bc108fc7 100755
(executable)
--- a/
Documentation/doc-diff
+++ b/
Documentation/doc-diff
@@
-39,8
+39,7
@@
do
shift
done
-cd_to_toplevel
-tmp=Documentation/tmp-doc-diff
+tmp="$(git rev-parse --show-toplevel)/Documentation/tmp-doc-diff" || exit 1
if test -n "$clean"
then
@@
-109,7
+108,7
@@
render_tree () {
make -j$parallel -C "$tmp/worktree" \
GIT_VERSION=omitted \
SOURCE_DATE_EPOCH=0 \
- DESTDIR="$
PWD/$
tmp/installed/$1+" \
+ DESTDIR="$tmp/installed/$1+" \
install-man &&
mv "$tmp/installed/$1+" "$tmp/installed/$1"
fi &&