From f76116e4a38a0a8adec4cf17c1981d0d13de2f4f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 1 Dec 2014 16:54:12 -0800 Subject: [PATCH] command/push: if a token isn't given, don't set it --- command/push.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command/push.go b/command/push.go index 5aead1f89..603ef85dc 100644 --- a/command/push.go +++ b/command/push.go @@ -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