[Hide Content]From e0fd43e341271163f725c067d002fa46c1cf7cf8 Mon Sep 17 00:00:00 2001
From: Pedro Navarro <pnavarro@netflix.com>
Date: Wed, 30 Oct 2013 11:52:46 -0700
Subject: [PATCH 1/2] Quote the P4 command, in case its path has spaces
---
cdash/dailyupdates.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cdash/dailyupdates.php b/cdash/dailyupdates.php
index ef539c8..c7441d2 100644
--- a/cdash/dailyupdates.php
+++ b/cdash/dailyupdates.php
@@ -299,7 +299,7 @@ function get_p4_repository_commits($root, $branch, $dates)
// Add the command line specified by the user in the "Repository" field
// of the project settings "Repository" tab and set the message language
// to be English
- $p4command = $CDASH_P4_COMMAND." ".$root." -L en";
+ $p4command = '"'.$CDASH_P4_COMMAND.'" '.$root." -L en";
// Perforce needs the dates separated with / and not with -
$fromtime = str_replace("-", "/", gmdate(FMT_DATETIMESTD, $dates['nightly-1']+1));
--
1.7.10.4