summaryrefslogtreecommitdiff
path: root/pack.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-03 19:41:12 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-03 19:41:12 (GMT)
commit40b64d47c3dd071c84445dece4003bb52a194339 (patch)
tree63db5d2bab36304a1e091422db3d3a36c9a21111 /pack.h
parent5825e5b25c557d977b6d877c19edc27322a8bf08 (diff)
downloadgit-40b64d47c3dd071c84445dece4003bb52a194339.zip
git-40b64d47c3dd071c84445dece4003bb52a194339.tar.gz
git-40b64d47c3dd071c84445dece4003bb52a194339.tar.bz2
send-pack: handle partial pushes correctly.
When pushing into multi-user repository, or when pushing to a repository from a local repository that has rebased branches that has been pruned, the destination repository can have head commits that are missing from the local repository. This should not matter as long as the local head of the branch being pushed is a proper superset of the destination branch, but we ended up trying to run rev-list telling it to exclude objects reachable from those heads missing from the local repository, causing it to barf. Prune those heads from the rev-list parameter list, and make sure we do not try to push a branch whose remote head is something we lack. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'pack.h')
0 files changed, 0 insertions, 0 deletions