command/push: if a token isn't given, don't set it
This commit is contained in:
parent
d08815fc49
commit
f76116e4a3
|
@ -73,7 +73,9 @@ func (c *PushCommand) Run(args []string) int {
|
|||
return 1
|
||||
}
|
||||
}
|
||||
c.client.Token = token
|
||||
if token != "" {
|
||||
c.client.Token = token
|
||||
}
|
||||
|
||||
// Build the archiving options
|
||||
var opts archive.ArchiveOpts
|
||||
|
|
Loading…
Reference in New Issue