Browse Source

Fix subtree tagging.

Mark Story 11 years ago
parent
commit
91c4cb33dd
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Makefile

+ 3 - 3
Makefile

@@ -12,8 +12,8 @@ CURRENT_BRANCH=$(shell git branch | grep '*' | tr -d '* ')
 # Github settings
 UPLOAD_HOST=https://uploads.github.com
 API_HOST=https://api.github.com
-OWNER="cakephp"
-REMOTE="origin"
+OWNER=cakephp
+REMOTE=origin
 
 ifdef GITHUB_TOKEN
 	AUTH=-H 'Authorization: token $(GITHUB_TOKEN)'
@@ -177,7 +177,7 @@ tag-component-%: component-% guard-VERSION guard-GITHUB_USER
 	@echo "Creating tag for the $* component"
 	git checkout $*
 	curl $(AUTH) -XPOST $(API_HOST)/repos/$(OWNER)/$*/git/refs -d '{ \
-		"refs": "refs\/tags\/$(VERSION)", \
+		"ref": "refs\/tags\/$(VERSION)", \
 		"sha": "$(shell git rev-parse $*)" \
 	}'
 	git checkout $(CURRENT_BRANCH) > /dev/null