Merge pull request #2155 from frebib/fix-repo-user

Fix extractRepositoryName() in agent logs
This commit is contained in:
Brad Rydzewski 2017-08-23 15:44:10 -07:00 committed by GitHub
commit e11dd116a2

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