Index: tools/common-includes.sh |
diff --git a/tools/common-includes.sh b/tools/common-includes.sh |
index 8f0e78b60180bcbf5a678870113b0e43b7faa3a7..c7d5bc2d3dc379cf9942f9ffa0e4a89367d97f51 100644 |
--- a/tools/common-includes.sh |
+++ b/tools/common-includes.sh |
@@ -175,7 +175,7 @@ the uploaded CL." |
# Takes a file containing the patch to apply as first argument. |
apply_patch() { |
- patch -p1 < "$1" > "$PATCH_OUTPUT_FILE" || \ |
+ patch $REVERSE_PATCH -p1 < "$1" > "$PATCH_OUTPUT_FILE" || \ |
{ cat "$PATCH_OUTPUT_FILE" && die "Applying the patch failed."; } |
tee < "$PATCH_OUTPUT_FILE" >(awk '{print $NF}' >> "$TOUCHED_FILES_FILE") |
rm "$PATCH_OUTPUT_FILE" |