Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
ls-remote: create '--sort' option
[gitweb.git]
/
builtin
/
diff.c
diff --git
a/builtin/diff.c
b/builtin/diff.c
index 9808d062a80a2ff07699fb0ea4cbd29f560630d3..16bfb22f7381ee8e6967ab836686c5def7cff892 100644
(file)
--- a/
builtin/diff.c
+++ b/
builtin/diff.c
@@
-379,7
+379,7
@@
int cmd_diff(int argc, const char **argv, const char *prefix)
add_head_to_pending(&rev);
if (!rev.pending.nr) {
struct tree *tree;
- tree = lookup_tree(
&empty_tree_oid
);
+ tree = lookup_tree(
the_hash_algo->empty_tree
);
add_pending_object(&rev, &tree->object, "HEAD");
}
break;