You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
When pushing to the remote repo, I want to define the branch to push to.
That's because the branch was set to null according to getNamesOrSpecs().
Turns out, the way I did it causes a NullPointerException:
task pushWithTags(type: GitPush){
description = "Performs a Git push that includes the tags."
setPushTags(true)
namesOrSpecs ("master") // <---- Causes NPE
credentials{
username = "mb720"
if(!project.hasProperty("gitPassword")){
ext.gitPassword = ""
}
password = gitPassword
}
}
Yet if I change that line to setNamesOrSpecs (["master"]) everything works fine.
Here is the stacktrace: http://pastebin.com/e4MJh2WF
Is this a bug? Am I using it wrong? Just wanted to let you know.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
When pushing to the remote repo, I want to define the branch to push to.
That's because the branch was set to null according to
getNamesOrSpecs()
.Turns out, the way I did it causes a NullPointerException:
Yet if I change that line to
setNamesOrSpecs (["master"])
everything works fine.Here is the stacktrace: http://pastebin.com/e4MJh2WF
Is this a bug? Am I using it wrong? Just wanted to let you know.
Thanks.
The text was updated successfully, but these errors were encountered: