]> git.ipfire.org Git - thirdparty/git.git/commit
git-bundle: various fixups
authorJunio C Hamano <junkio@cox.net>
Tue, 6 Mar 2007 00:16:32 +0000 (16:16 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 6 Mar 2007 09:08:34 +0000 (01:08 -0800)
commitc2dea5a11cc7106d0beec9931e527467b7189ab3
treea4f4b62e34ef79dd249431bb5b1e7471a5b80891
parent2b064697a5b0610254f52523ce5b70c81118da80
git-bundle: various fixups

verify_bundle() returned with an error early only when all
prerequisite commits were missing.  It should error out much
earlier when some are missing.

When the rev-list is limited in ways other than revision range
(e.g. --max-count or --max-age), create_bundle() listed all
positive refs given from the command line as if they are
available, but resulting pack may not have some of them.  Add a
logic to make sure all of them are included, and error out
otherwise.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-bundle.c