aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-06-10 21:31:40 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-06-10 21:31:40 -1000
commit9744455da720324fcef0a9c6c55b94df0e62ec41 (patch)
tree69242c49b6304b593918f93dd7fc43334e1bc6b1
parenta70b61642fbe5dd64fc66ce85028844b746f1868 (diff)
downloadpatchfoo-9744455da720324fcef0a9c6c55b94df0e62ec41.tar.gz
patchfoo-9744455da720324fcef0a9c6c55b94df0e62ec41.zip
Fix handling git hash
-rw-r--r--lib/git.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git.js b/lib/git.js
index fa889ef..cfcea9e 100644
--- a/lib/git.js
+++ b/lib/git.js
@@ -618,7 +618,7 @@ Git.prototype.diffTrees = function (objs) {
if (item.values[k]) created = false
return {
name: item.key,
- hash: diff.hash,
+ hash: item.values.map(function (val) { return val.hash }),
mode: diff.mode,
type: item.values.map(function (val) { return val.type }),
deleted: !head,