From 0aaa2ae6fe5abe0e4e21f66fd9b6b3537ce804f9 Mon Sep 17 00:00:00 2001
From: rfay <randy@randyfay.com>
Date: Sat, 12 Feb 2011 22:13:25 -0700
Subject: [PATCH] Issue #1059990 by rfay: Change patch format to patch -p1 for git

---
 client/review/vcs/git.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/review/vcs/git.inc b/client/review/vcs/git.inc
index bcab5ec..24b73cc 100644
--- a/client/review/vcs/git.inc
+++ b/client/review/vcs/git.inc
@@ -24,7 +24,7 @@ class PIFRClientReviewVCS_git implements PIFRClientReviewVCS {
   }
 
   public function apply($patch) {
-    return pifr_client_review::exec("patch -p0 -i $patch");
+    return pifr_client_review::exec("patch -p1 -i $patch");
   }
 
   public function get_changed_files($patch) {
-- 
1.7.0.4

