We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb14458 commit a2ee2a3Copy full SHA for a2ee2a3
cmd/hook.go
@@ -214,7 +214,7 @@ func runHookPostReceive(c *cli.Context) error {
214
log.GitLogger.Error(2, "Update: %v", err)
215
}
216
217
- if strings.HasPrefix(refFullName, git.BranchPrefix) {
+ if newCommitID != git.EmptySHA && strings.HasPrefix(refFullName, git.BranchPrefix) {
218
branch := strings.TrimPrefix(refFullName, git.BranchPrefix)
219
repo, pullRequestAllowed, err := private.GetRepository(repoID)
220
if err != nil {
0 commit comments