summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2012-09-17 06:33:24 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2012-09-17 06:33:24 -0600
commitc578fb0fc6e768739013df8d7aa19f2616272f18 (patch)
tree9cd5553ae692405c686ebbc8e184ed67279a1fbb /etc/phpshellsessions
parentcba980f6a4fafa55b1eb11621e33942f149061ff (diff)
downloadpfsense-c578fb0fc6e768739013df8d7aa19f2616272f18.zip
pfsense-c578fb0fc6e768739013df8d7aa19f2616272f18.tar.gz
Fix special build_commit tag that was broken from previous change to how it read the file with the commit ID.
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/gitsync2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync
index 6bc07e1..67a671d 100644
--- a/etc/phpshellsessions/gitsync
+++ b/etc/phpshellsessions/gitsync
@@ -215,7 +215,7 @@ if($branch == "build_commit") {
$git_cmd = array(
"cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git branch " . escapeshellarg($branch) . " 2>/dev/null",
"cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git checkout -f " . escapeshellarg($branch) . " 2>/dev/null",
- "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git reset --hard " . escapeshellarg(file_get_contents("/etc/version.lastcommit"))
+ "cd $CODIR/pfSenseGITREPO/pfSenseGITREPO && git reset --hard " . escapeshellarg(trim(file_get_contents("/etc/version.lastcommit")))
);
} else {
$git_cmd = array(
OpenPOWER on IntegriCloud