.
This commit is contained in:
@@ -57,16 +57,16 @@ func (h *RequestHandler) parseRepositoryRequest(dataReader io.Reader) *Repositor
|
||||
repoIdx := strings.LastIndex(data.Repository.Ssh_Url, "/")
|
||||
if repoIdx == -1 || data.Repository.Ssh_Url[repoIdx+1:] != data.Repository.Name+".git" {
|
||||
h.Error = fmt.Errorf("No data, skipping")
|
||||
h.LogError("Unexpected URL for SSH repository: %s", data.Repository.Name)
|
||||
h.ErrLogger.Printf("Unexpected URL for SSH repository: %s\n", data.Repository.Name)
|
||||
return nil
|
||||
}
|
||||
|
||||
data.PrjGit = data.Repository.Ssh_Url[:repoIdx+1] + DefaultGitPrj + ".git"
|
||||
|
||||
h.Log("Request '%s' for repo: %s", data.Action, data.Repository.Full_Name)
|
||||
h.StdLogger.Printf("Request '%s' for repo: %s\n", data.Action, data.Repository.Full_Name)
|
||||
if len(data.Action) < 1 {
|
||||
h.Error = fmt.Errorf("No data, skipping")
|
||||
h.LogError("Request has no data.... skipping")
|
||||
h.ErrLogger.Println("Request has no data.... skipping")
|
||||
}
|
||||
|
||||
h.Data = data
|
||||
|
Reference in New Issue
Block a user