# [PATCH] Make pull not assume anything about current objects

1 messages from 2005-05-01 to 2005-05-01. Participants: Daniel Barkalow.
Thread: https://gitlist.dev/t/419

## Daniel Barkalow, 2005-05-01 17:33

Subject: [PATCH] Make pull not assume anything about current objects
Message-ID: <Pine.LNX.4.21.0505011327160.30848-100000@iabervon.org>
URL: https://gitlist.dev/e/Pine.LNX.4.21.0505011327160.30848-100000%40iabervon.org

```
Previously, pull assumed that, if you have a commit, you either have or
don't want everything it references. Change this to actually check
locally on everything you want, to be completely sure.

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Index: pull.c
===================================================================
--- 6f0f1d99169f9d90aa44e47d1bcff7b1dd4d8ea0/pull.c  (mode:100644 sha1:86a7b6901fe69a82c12c3470b456982ef52cebd0)
+++ 661b090ca8652d2cfa299b4cac3ffceebdd2b43c/pull.c  (mode:100644 sha1:90d2d41ed2c56580f72f020bc93c3e1b8a3befa5)
@@ -48,8 +48,6 @@
 	if (get_history) {
 		struct commit_list *parents = obj->parents;
 		for (; parents; parents = parents->next) {
-			if (has_sha1_file(parents->item->object.sha1))
-				continue;
 			if (fetch(parents->item->object.sha1)) {
 				/* The server might not have it, and
 				 * we don't mind. 


```
