From 963ece619c7ca51857bdd5a673940d98bd233f5b Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 22 Apr 2025 09:15:38 +0100 Subject: [PATCH] appview: fix inverted IsPatchValid check --- appview/state/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appview/state/pull.go b/appview/state/pull.go index 338452a8..994fe4ed 100644 --- a/appview/state/pull.go +++ b/appview/state/pull.go @@ -804,7 +804,7 @@ func (s *State) handleForkBasedPull(w http.ResponseWriter, r *http.Request, f *F sourceRev := comparison.Rev2 patch := comparison.Patch - if patchutil.IsPatchValid(patch) { + if !patchutil.IsPatchValid(patch) { s.pages.Notice(w, "pull", "Invalid patch format. Please provide a valid diff.") return } -- 2.51.2