From fbb9526a39313722b8fdeec23b2187a48c6745db Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Thu, 10 Aug 2017 15:55:58 +0100 Subject: [PATCH] Fix extractRepositoryName() in agent logs --- cmd/drone-agent/agent.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/drone-agent/agent.go b/cmd/drone-agent/agent.go index 96fd38472..50264f4f3 100644 --- a/cmd/drone-agent/agent.go +++ b/cmd/drone-agent/agent.go @@ -414,8 +414,7 @@ func (c *credentials) RequireTransportSecurity() bool { // extract repository name from the configuration func extractRepositoryName(config *backend.Config) string { - return config.Stages[0].Steps[0].Environment["DRONE_REPO_NAME"] + "/" + - config.Stages[0].Steps[0].Environment["DRONE_REPO_NAME"] + return config.Stages[0].Steps[0].Environment["DRONE_REPO"] } // extract build number from the configuration