1
0
mirror of https://github.com/drone/drone-cli.git synced 2024-11-26 06:07:05 +01:00

Merge pull request #137 from sherrman/fix-ref-env-option

Fix copy/paste error with --ref
This commit is contained in:
Brad Rydzewski 2019-08-07 09:19:16 -07:00 committed by GitHub
commit 8957864f75
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@ func getEnv(c *cli.Context) map[string]string {
env["DRONE_SYSTEM_HOSTNAME"] = v
}
if c.IsSet("ref") {
v := c.String("instance")
v := c.String("ref")
env["DRONE_COMMIT_REF"] = v
}
if c.IsSet("repo") {