mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-11 04:30:06 +02:00
fix showing pull request link when delete a branch (#5166)
This commit is contained in:
parent
fb14458010
commit
a2ee2a3c67
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ func runHookPostReceive(c *cli.Context) error {
|
|||
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)
|
||||
repo, pullRequestAllowed, err := private.GetRepository(repoID)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue