adding refspec to agent env

This commit is contained in:
Orlando Del Aguila 2016-12-07 14:32:37 -06:00
parent 43b11ed322
commit abc8902bee

View file

@ -251,6 +251,7 @@ func toEnv(w *model.Work) map[string]string {
"DRONE_REMOTE_URL": w.Repo.Clone,
"DRONE_COMMIT_SHA": w.Build.Commit,
"DRONE_COMMIT_REF": w.Build.Ref,
"DRONE_COMMIT_REFSPEC": w.Build.Refspec,
"DRONE_COMMIT_BRANCH": w.Build.Branch,
"DRONE_COMMIT_LINK": w.Build.Link,
"DRONE_COMMIT_MESSAGE": w.Build.Message,