From dbcc58147027db21beaafab4d3fdbc349a5a22a0 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Wed, 13 Mar 2024 06:18:58 +0100 Subject: chore: fix applying review --- app/Review.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Review.hs') diff --git a/app/Review.hs b/app/Review.hs index 3b7afbe..b1cd21b 100644 --- a/app/Review.hs +++ b/app/Review.hs @@ -187,7 +187,7 @@ commitReview plan patch = do withSystemTempDirectory "anissue" $ \tmp -> do when (not (null patch.fileDeltas)) do T.writeFile (tmp "review.patch") (renderAsText patch) - sh_ (proc "patch -p0 <%/review.patch" tmp) + sh_ (proc "patch -p1 <%/review.patch" tmp) T.writeFile (tmp "commit_editmsg") (commit_editmsg plan) sh_ (proc "git add %" (map (.fileDeltaDestFile) patch.fileDeltas)) sh_ (proc "git commit --allow-empty --template %/commit_editmsg" tmp) -- cgit v1.2.3