From 2fb548667ac946d985634937ee6b953767970df3 Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Mon, 17 Sep 2012 06:33:24 -0600 Subject: Fix special build_commit tag that was broken from previous change to how it read the file with the commit ID. Backport of c578fb0fc6e768739013df8d7aa19f2616272f18 --- etc/phpshellsessions/gitsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync index feb6f21..97757c7 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( -- cgit v1.1