fast-export: trivial cleanup

Setting 'commit' to 'commit' is a no-op. It might have been there to
avoid a compiler warning, but if so, it was the compiler to blame, and
it's certainly not there any more.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Felipe Contreras 2012-11-28 23:11:08 +01:00 committed by Junio C Hamano
parent 1d3f9a3093
commit 2d242de4fd

View File

@ -483,7 +483,7 @@ static void get_tags_and_duplicates(struct object_array *pending,
for (i = 0; i < pending->nr; i++) { for (i = 0; i < pending->nr; i++) {
struct object_array_entry *e = pending->objects + i; struct object_array_entry *e = pending->objects + i;
unsigned char sha1[20]; unsigned char sha1[20];
struct commit *commit = commit; struct commit *commit;
char *full_name; char *full_name;
if (dwim_ref(e->name, strlen(e->name), sha1, &full_name) != 1) if (dwim_ref(e->name, strlen(e->name), sha1, &full_name) != 1)