summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2012-11-28 22:11:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-11-29 20:18:45 (GMT)
commit2d242de4fd76e31031ee36e7307ab1386e2bce7d (patch)
tree9138049ab33ab01d597fb7021b297b364e9ed4e1 /builtin
parent1d3f9a30938e12b8ef7b807df7565b40b743d421 (diff)
downloadgit-2d242de4fd76e31031ee36e7307ab1386e2bce7d.zip
git-2d242de4fd76e31031ee36e7307ab1386e2bce7d.tar.gz
git-2d242de4fd76e31031ee36e7307ab1386e2bce7d.tar.bz2
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>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/fast-export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fast-export.c b/builtin/fast-export.c
index 9b70ec1..191936c 100644
--- a/builtin/fast-export.c
+++ b/builtin/fast-export.c
@@ -483,7 +483,7 @@ static void get_tags_and_duplicates(struct object_array *pending,
for (i = 0; i < pending->nr; i++) {
struct object_array_entry *e = pending->objects + i;
unsigned char sha1[20];
- struct commit *commit = commit;
+ struct commit *commit;
char *full_name;
if (dwim_ref(e->name, strlen(e->name), sha1, &full_name) != 1)