Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Use @diff_opts, default ('M'), as git-diff and git-diff-tree paramete
[gitweb.git]
/
revision.c
diff --git
a/revision.c
b/revision.c
index 5a91d06b980d710e30a80c353a636ca1ca6b9a55..1d89d72738ff917d29373d50c2c2cc9bbd10b2c0 100644
(file)
--- a/
revision.c
+++ b/
revision.c
@@
-496,7
+496,7
@@
static int add_parents_only(struct rev_info *revs, const char *arg, int flags)
it = get_reference(revs, arg, sha1, 0);
if (it->type != OBJ_TAG)
break;
-
memcpy(sha1, ((struct tag*)it)->tagged->sha1, 20
);
+
hashcpy(sha1, ((struct tag*)it)->tagged->sha1
);
}
if (it->type != OBJ_COMMIT)
return 0;