1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00

Fix extractRepositoryName() in agent logs

This commit is contained in:
Joe Groocock 2017-08-10 15:55:58 +01:00
parent c8313f8cd8
commit fbb9526a39
No known key found for this signature in database
GPG Key ID: E0B16BEACFBB6A86

View File

@ -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