diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Review.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |