mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
show git version on start
This commit is contained in:
parent
b9c1b45a8b
commit
3c6ca617f6
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue