summaryrefslogtreecommitdiff
blob: 5c921270bd503fd4ad5499d6c156d34038b9e7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/project/VersionUtil.scala
+++ b/project/VersionUtil.scala
@@ -80,18 +80,8 @@
 
     val (dateObj, sha) = {
       try {
-        // Use JGit to get the commit date and SHA
-        import org.eclipse.jgit.storage.file.FileRepositoryBuilder
-        import org.eclipse.jgit.revwalk.RevWalk
-        val db = new FileRepositoryBuilder().findGitDir.build
-        val head = db.resolve("HEAD")
-        if(head eq null) {
-          log.info("No git HEAD commit found -- Using current date and 'unknown' SHA")
-          (new Date, "unknown")
-        } else {
-          val commit = new RevWalk(db).parseCommit(head)
-          (new Date(commit.getCommitTime.toLong * 1000L), commit.getName.substring(0, 7))
-        }
+        val commit = "21d12e9f5ec1ffe023f509848911476c1552d06f"
+        (new Date, commit.substring(0, 7))
       } catch { case ex: Exception =>
         log.error("Could not determine commit date + SHA: "+ex)
         log.trace(ex)