Skip to content

Commit cb2f36e

Browse files
committed
Release script: Correctly parse HTTPS origin URLs
1 parent 12e8c71 commit cb2f36e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ release:
1818
@if ! type -P sponge; then echo "Please install moreutils"; exit 1; fi
1919
@if ! type -P http; then echo "Please install httpie"; exit 1; fi
2020
@if ! type -P twine; then echo "Please install twine"; exit 1; fi
21-
$(eval REMOTE=$(shell git remote get-url origin | perl -ne '/([^\/\:]+\/.+?)(\.git)?$$/; print $$1'))
21+
$(eval REMOTE=$(shell git remote get-url origin | perl -ne '/([^\/\:]+\/[^\/\:]+?)(\.git)?$$/; print $$1'))
2222
$(eval GIT_USER=$(shell git config --get user.email))
2323
$(eval GH_AUTH=$(shell if grep -q '@github.com' ~/.git-credentials; then echo $$(grep '@github.com' ~/.git-credentials | python3 -c 'import sys, urllib.parse as p; print(p.urlparse(sys.stdin.read()).netloc.split("@")[0])'); else echo $(GIT_USER); fi))
2424
$(eval RELEASES_API=https://api.github.com/repos/${REMOTE}/releases)

0 commit comments

Comments
 (0)