{"thread":{"id":"419","subject":"[PATCH] Make pull not assume anything about current objects","startedAt":"2005-05-01T17:33:30Z","lastAt":"2005-05-01T17:33:30Z","messageCount":1,"participants":["Daniel Barkalow"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"2304","messageId":"Pine.LNX.4.21.0505011327160.30848-100000@iabervon.org","threadId":"419","inReplyTo":null,"subject":"[PATCH] Make pull not assume anything about current objects","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2005-05-01T17:33:30Z","receivedAt":"2005-05-01T17:33:30Z","isPatch":true,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"Previously, pull assumed that, if you have a commit, you either have or\ndon't want everything it references. Change this to actually check\nlocally on everything you want, to be completely sure.\n\nSigned-off-by: Daniel Barkalow <barkalow@iabervon.org>\nIndex: pull.c\n===================================================================\n--- 6f0f1d99169f9d90aa44e47d1bcff7b1dd4d8ea0/pull.c  (mode:100644 sha1:86a7b6901fe69a82c12c3470b456982ef52cebd0)\n+++ 661b090ca8652d2cfa299b4cac3ffceebdd2b43c/pull.c  (mode:100644 sha1:90d2d41ed2c56580f72f020bc93c3e1b8a3befa5)\n@@ -48,8 +48,6 @@\n \tif (get_history) {\n \t\tstruct commit_list *parents = obj->parents;\n \t\tfor (; parents; parents = parents->next) {\n-\t\t\tif (has_sha1_file(parents->item->object.sha1))\n-\t\t\t\tcontinue;\n \t\t\tif (fetch(parents->item->object.sha1)) {\n \t\t\t\t/* The server might not have it, and\n \t\t\t\t * we don't mind. \n\n"}]}