show git version on start

pull/108/merge
Peter 'Pita' Martischka 2011-08-19 22:01:33 +01:00
parent b9c1b45a8b
commit 3c6ca617f6
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{