File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ MAN7_TXT += gitworkflows.txt
3939MAN_TXT = $(MAN1_TXT ) $(MAN5_TXT ) $(MAN7_TXT )
4040MAN_XML = $(patsubst % .txt,% .xml,$(MAN_TXT ) )
4141MAN_HTML = $(patsubst % .txt,% .html,$(MAN_TXT ) )
42+ GIT_MAN_REF = master
4243
4344OBSOLETE_HTML += everyday.html
4445OBSOLETE_HTML += git-remote-helpers.html
@@ -437,14 +438,14 @@ require-manrepo::
437438 then echo " git-manpages repository must exist at $( MAN_REPO) " ; exit 1; fi
438439
439440quick-install-man : require-manrepo
440- ' $(SHELL_PATH_SQ)' ./install-doc-quick.sh $(MAN_REPO ) $(DESTDIR )$(mandir )
441+ ' $(SHELL_PATH_SQ)' ./install-doc-quick.sh $(MAN_REPO ) $(DESTDIR )$(mandir ) $( GIT_MAN_REF )
441442
442443require-htmlrepo ::
443444 @if test ! -d $(HTML_REPO ) ; \
444445 then echo " git-htmldocs repository must exist at $( HTML_REPO) " ; exit 1; fi
445446
446447quick-install-html : require-htmlrepo
447- ' $(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REPO ) $(DESTDIR )$(htmldir )
448+ ' $(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REPO ) $(DESTDIR )$(htmldir ) $( GIT_MAN_REF )
448449
449450print-man1 :
450451 @for i in $(MAN1_TXT ) ; do echo $$ i; done
Original file line number Diff line number Diff line change 33
44repository=${1?repository}
55destdir=${2?destination}
6+ GIT_MAN_REF=${3?master}
67
7- head=master GIT_DIR=
8+ GIT_DIR=
89for d in " $repository /.git" " $repository "
910do
10- if GIT_DIR=" $d " git rev-parse refs/heads/master > /dev/null 2>&1
11+ if GIT_DIR=" $d " git rev-parse " $GIT_MAN_REF " > /dev/null 2>&1
1112 then
1213 GIT_DIR=" $d "
1314 export GIT_DIR
@@ -27,12 +28,12 @@ export GIT_INDEX_FILE GIT_WORK_TREE
2728rm -f " $GIT_INDEX_FILE "
2829trap ' rm -f "$GIT_INDEX_FILE"' 0
2930
30- git read-tree $head
31+ git read-tree " $GIT_MAN_REF "
3132git checkout-index -a -f --prefix=" $destdir " /
3233
3334if test -n " $GZ "
3435then
35- git ls-tree -r --name-only $head |
36+ git ls-tree -r --name-only " $GIT_MAN_REF " |
3637 xargs printf " $destdir /%s\n" |
3738 xargs gzip -f
3839fi
You can’t perform that action at this time.
0 commit comments