File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ release: github_release pypi_release
8585# Call like this:
8686# make GITHUB_COM_TOKEN=$KEY TAGNAME=v2.23.0 github_release
8787github_release : export FILEBASE=git-filter-repo-$(shell echo $(TAGNAME ) | tail -c +2)
88- github_release : export GIT_INDEX_FILE =$(shell mktemp)
88+ github_release : export TMP_INDEX_FILE =$(shell mktemp)
8989github_release : export COMMIT=$(shell git rev-parse HEAD)
9090github_release : update_docs
9191 test -n " $( GITHUB_COM_TOKEN) "
@@ -99,14 +99,14 @@ github_release: update_docs
9999 git tag -a -m " filter-repo $( TAGNAME) " $(TAGNAME ) $$ COMMIT
100100 git push origin $(TAGNAME )
101101 # Create the tarball
102- git read-tree $$ COMMIT
102+ GIT_INDEX_FILE= $$ TMP_INDEX_FILE git read-tree $$ COMMIT
103103 git ls-tree -r docs | grep filter-repo \
104104 | sed -e ' s%\t%\tDocumentation/%' \
105- | git update-index --index-info
106- git write-tree \
105+ | GIT_INDEX_FILE= $$ TMP_INDEX_FILE git update-index --index-info
106+ GIT_INDEX_FILE= $$ TMP_INDEX_FILE git write-tree \
107107 | xargs git archive --prefix=$(FILEBASE ) / \
108108 | xz -c > $(FILEBASE ) .tar.xz
109- rm $$ GIT_INDEX_FILE
109+ rm $$ TMP_INDEX_FILE
110110 # Make GitHub mark our new tag as an official release
111111 curl -s -H " Authorization: token $( GITHUB_COM_TOKEN) " -X POST \
112112 https://api.github.com/repos/newren/git-filter-repo/releases \
You can’t perform that action at this time.
0 commit comments