diff options
-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 b1cd21b..37d9ee4 100644 --- a/app/Review.hs +++ b/app/Review.hs @@ -189,7 +189,7 @@ commitReview plan patch = do T.writeFile (tmp </> "review.patch") (renderAsText patch) 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 add %" (map (T.drop (T.length "b/") . (.fileDeltaDestFile)) patch.fileDeltas)) sh_ (proc "git commit --allow-empty --template %/commit_editmsg" tmp) commit_editmsg :: Plan -> T.Text |