From 1f2de769812f0adea598269d788c9c75d23e80b8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 24 Nov 2006 15:58:25 +0100 Subject: [PATCH] upload-pack: Check for NOT_SHALLOW flag before sending a shallow to the client. A commit may have been put on the shallow list, and then reached from another branch and marked NOT_SHALLOW without being removed from the list. Signed-off-by: Alexandre Julliard Signed-off-by: Junio C Hamano --- upload-pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload-pack.c b/upload-pack.c index d5b47507db..d4a7b625f4 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -565,7 +565,7 @@ static void receive_needs(void) SHALLOW, NOT_SHALLOW); while (result) { struct object *object = &result->item->object; - if (!(object->flags & CLIENT_SHALLOW)) { + if (!(object->flags & (CLIENT_SHALLOW|NOT_SHALLOW))) { packet_write(1, "shallow %s", sha1_to_hex(object->sha1)); register_shallow(object->sha1); -- 2.11.4.GIT