summaryrefslogtreecommitdiff
path: root/bundle.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-01-25 17:13:02 -0800
committerJunio C Hamano <gitster@pobox.com>2009-01-25 17:13:02 -0800
commitf18e6bef23809d2823c1a687f375b22c6af0e735 (patch)
tree3b9c79bbd3307ca49a36b142435937db12dbb2b8 /bundle.c
parent45099df6d7d83b30300f8efa3f6b831d6132c687 (diff)
parentb2a6d1c6868b6d5e7d2b4fa9129341220a1e848a (diff)
downloadgit-f18e6bef23809d2823c1a687f375b22c6af0e735.tar.gz
Merge branch 'js/maint-all-implies-HEAD'
* js/maint-all-implies-HEAD: bundle: allow the same ref to be given more than once revision walker: include a detached HEAD in --all
Diffstat (limited to 'bundle.c')
-rw-r--r--bundle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundle.c b/bundle.c
index 4977962eb5..d0dd818b31 100644
--- a/bundle.c
+++ b/bundle.c
@@ -266,6 +266,8 @@ int create_bundle(struct bundle_header *header, const char *path,
return error("unrecognized argument: %s'", argv[i]);
}
+ object_array_remove_duplicates(&revs.pending);
+
for (i = 0; i < revs.pending.nr; i++) {
struct object_array_entry *e = revs.pending.objects + i;
unsigned char sha1[20];