aboutsummaryrefslogtreecommitdiff
path: root/api/git.js
diff options
context:
space:
mode:
Diffstat (limited to 'api/git.js')
-rw-r--r--api/git.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/git.js b/api/git.js
index 3f7b69c..8574dfa 100644
--- a/api/git.js
+++ b/api/git.js
@@ -212,7 +212,7 @@ function getCommit(base_dir, repo, hash)
file_info[data[1].replaceAll(' ', "_")] = data[2];
}
else if(line.includes("index")) {
- const data = /^index\ ([0-9a-f,]+)\.\.([0-9a-f,]+)(?:\ (\d{6}))?$/.exec(line).slice(1);
+ const data = /^index\ ([0-9a-f,]+)\.\.([0-9a-f,]+)(?:\ ([0-9,]+))?$/.exec(line).slice(1);
file_info["index"] = { "before": data[0], "after": data[1] };
if(data[2]) {
file_info["index"]["mode"] = data[2];