aboutsummaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorAmine <hilalyamine@gmail.com>2019-08-23 11:09:03 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-08-31 23:02:20 +0200
commit65d7ce7c05a458beb306984c6fd3629839872845 (patch)
treea90e6b96b635bfefb11f8c685cb626c9710f2ce4 /bridge
parent0381400bfda16f910ca87b0258ddda1c1732fbc7 (diff)
downloadgit-bug-65d7ce7c05a458beb306984c6fd3629839872845.tar.gz
commands: enhance flag description
bridge/github: improve configuration logic Co-Authored-By: Michael Muré <batolettre@gmail.com>
Diffstat (limited to 'bridge')
-rw-r--r--bridge/github/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/github/config.go b/bridge/github/config.go
index f55ea1b4..954bf845 100644
--- a/bridge/github/config.go
+++ b/bridge/github/config.go
@@ -45,7 +45,7 @@ func (g *Github) Configure(repo repository.RepoCommon, params core.BridgeParams)
var project string
if params.Token != "" &&
- !(params.URL != "" || (params.Project != "" && params.Owner != "")) {
+ (params.URL == "" && (params.Project == "" || params.Owner == "")) {
return nil, fmt.Errorf("you must provide a project URL or Owner/Name to configure this bridge with a token")
}