From ea4da187ae31e86a50f00ea7df17480f2e1f5051 Mon Sep 17 00:00:00 2001 From: Heikki Hokkanen Date: Mon, 24 May 2010 19:17:32 +0300 Subject: [PATCH] Doublequote git diff parameters ("from^..to"). This should fix SF bug #3005755, eg. Windows choking up on the caret. --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 084f1b3..ff7f0d4 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -98,7 +98,7 @@ function get_project_info($name) */ function git_diff($project, $from, $to) { - return join("\n", run_git($project, "diff $from..$to")); + return join("\n", run_git($project, "diff \"$from..$to\"")); } function git_diffstat($project, $commit, $commit_base = null) -- 2.11.4.GIT