Przeglądaj źródła

fix showing pull request link when delete a branch (#5166)

tags/v1.7.0-dev
Lunny Xiao 5 lat temu
rodzic
commit
a2ee2a3c67
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      cmd/hook.go

+ 1
- 1
cmd/hook.go Wyświetl plik

log.GitLogger.Error(2, "Update: %v", err) log.GitLogger.Error(2, "Update: %v", err)
} }


if strings.HasPrefix(refFullName, git.BranchPrefix) {
if newCommitID != git.EmptySHA && strings.HasPrefix(refFullName, git.BranchPrefix) {
branch := strings.TrimPrefix(refFullName, git.BranchPrefix) branch := strings.TrimPrefix(refFullName, git.BranchPrefix)
repo, pullRequestAllowed, err := private.GetRepository(repoID) repo, pullRequestAllowed, err := private.GetRepository(repoID)
if err != nil { if err != nil {

Ładowanie…
Anuluj
Zapisz