From 3c6ca617f6dc8bce662a8c3f5837401d2cee9629 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Fri, 19 Aug 2011 22:01:33 +0100 Subject: [PATCH] show git version on start --- node/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/server.js b/node/server.js index a7d2b12f2..4054dc628 100644 --- a/node/server.js +++ b/node/server.js @@ -47,7 +47,8 @@ try var ref = fs.readFileSync("../.git/HEAD", "utf-8"); var refPath = "../.git/" + ref.substring(5, ref.indexOf("\n")); version = fs.readFileSync(refPath, "utf-8"); - version = version.substring(0, 8); + version = version.substring(0, 7); + console.log("Your Etherpad Lite git version is " + version); } catch(e) {