Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Push only the tag we created. #11
Having troubles with `git name-rev --name-only HEAD` because it resolves to tag names too. Using `git status -sb` as written consistently gets me to the remote name. ``` nmalik@nmalik (master) osd-operators-registry$ git status -sb ## master...upstream/master nmalik@nmalik (master) osd-operators-registry$ git name-rev --name-only HEAD tags/release-better-git-remote-1dc7ce65454cc0431fd35e5cb4008db6 ```…
On Thu, Apr 11, 2019 at 1:43 PM Christoph Blecker ***@***.***> wrote: ***@***.**** commented on this pull request. ------------------------------ In Makefile <#11 (comment)> : > @@ -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'); \ A more robust way of doing this might be: git config branch.$(git name-rev --name-only HEAD).remote — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#11 (review)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAdUhO-2VrjSdPUh0VFSFJTEQRYMDcGtks5vf3QmgaJpZM4cqIqj> .
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews.