Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push only the tag we created. #11

Merged
merged 1 commit into from Apr 11, 2019

Conversation

Projects
None yet
4 participants
@jewzaam
Copy link
Member

jewzaam commented Apr 11, 2019

Found that using git push --tags will push every tag. It's a mess to clean up.
Just push one, which requires knowing the remote name.

Push only the tag we created.
Found that using `git push --tags` will push ever tag.  It's a mess to clean up.
Just push one, which requires knowing the remote name.
@rogbas

This comment has been minimized.

Copy link
Contributor

rogbas commented Apr 11, 2019

/lgtm

@jewzaam jewzaam merged commit 61a33c5 into openshift:master Apr 11, 2019

@jewzaam jewzaam deleted the jewzaam:push-only-one-tag branch Apr 11, 2019

@@ -130,7 +130,8 @@ git-tag:

.PHONY: git-push
git-push: git-tag
git push && git push --tags
REMOTE=$(shell git status -sb | grep ^# | sed 's#.*[.]\([^./]*\)/[^./]*$$#\1#g'); \

This comment has been minimized.

Copy link
@cblecker

cblecker Apr 11, 2019

Member

A more robust way of doing this might be:

git config branch.$(git name-rev --name-only HEAD).remote
@jewzaam

This comment has been minimized.

Copy link
Member Author

jewzaam commented Apr 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.