git2r
git2r copied to clipboard
Push all tags
Does git2r support the equivalent of this: git push origin --tags
?
If not, could it?
For that matter, is it possible to push a tag at all right now? It looks like I can't use a tag as the refspec in the push method for a git_repository
.
> tags(repo)
$`fbind-init`
[837e86] fbind-init
> push(repo, "origin", "fbind-init",
+ credentials = cred_user_pass("EMAIL",
+ Sys.getenv("GITHUB_PAT")))
Error in .local(object, ...) :
Error in 'git2r_push': Not a valid reference 'bind-init'
Does it work if you try: push(repo, "origin", "refs/tags/*:refs/tags/*")
?
I get this:
> push(repo, "origin", "refs/tags/*:refs/tags/*", credentials = cred_user_pass("EMAIL", Sys.getenv("GITHUB_PAT")))
Error in .local(object, ...) :
Error in 'git2r_push': Not a valid reference 'refs/tags/*'
Ooh, this works for pushing a single tag, which is progress:
push(repo, "origin", "refs/tags/fbind-init", credentials = cred_user_pass("EMAIL", Sys.getenv("GITHUB_PAT")))
Great :+1: