summaryrefslogtreecommitdiff
path: root/src/libgit2/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgit2/diff.c')
-rw-r--r--src/libgit2/diff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libgit2/diff.c b/src/libgit2/diff.c
index f593f7336..91931e75b 100644
--- a/src/libgit2/diff.c
+++ b/src/libgit2/diff.c
@@ -381,6 +381,7 @@ int git_diff_patchid(git_oid *out, git_diff *diff, git_diff_patchid_options *opt
if ((error = (flush_hunk(&args.result, &args.ctx))) < 0)
goto out;
+ args.result.type = GIT_OID_SHA1;
git_oid_cpy(out, &args.result);
out: