Skip to content

Commit 5bfe873

Browse files
committed
git-annex: hide PR message for pushes
This hides the message with a link to open a new PR that you normally get when pushing to a new branch if you push to a newly created git-annex or synced/ branch.
1 parent e1f0991 commit 5bfe873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/hook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ Gitea or set your environment appropriately.`, "")
446446

447447
func hookPrintResults(results []private.HookPostReceiveBranchResult) {
448448
for _, res := range results {
449-
if !res.Message {
449+
if !res.Message || res.Branch == "git-annex" || strings.HasPrefix(res.Branch, "synced/") {
450450
continue
451451
}
452452

0 commit comments

Comments
 (0)