{"thread":{"id":"19049","subject":"[PATCH 0/3] http-push: fix fetching","startedAt":"2009-04-24T16:35:16Z","lastAt":"2009-04-24T16:35:16Z","messageCount":1,"participants":["Tay Ray Chuan"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"112213","messageId":"49F1EA44.6010209@gmail.com","threadId":"19049","inReplyTo":null,"subject":"[PATCH 0/3] http-push: fix fetching","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2009-04-24T16:35:16Z","receivedAt":"2009-04-24T16:35:16Z","isPatch":true,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"http-push.c contains a lot of fetching code, but it's not known if it\nreally works, given that most people fetch first before pushing (after\nall, the git manual recommends this).\n\nThe first two patches add tests[1] that demonstrate that http-push.c\nfails to fetch from the remote repo, and remedy this by ensuring fetch\nrequests are sent out. Along the way, code that sends out requests on\nthe requests queue is refactored (run_request_queue()), and a mechanism\nagainst accidental pushing to the remote side is introduced.\n\nFootnotes:\n[1] the tests coerce http-push into fetching objects from the repo by\n    removing local objects before executing http-push, and represent\n    just one possible workflow that lead to fetching in http-push.\n\nTay Ray Chuan (3):\n  t5540-http-push: test fetching of loose objects\n  t5540-http-push: test fetching of packed objects\n  http-push: send out fetch requests on queue\n\n http-push.c          |   37 ++++++++++++++++++++++++++-----------\n t/t5540-http-push.sh |   36 ++++++++++++++++++++++++++++++++++++\n 2 files changed, 62 insertions(+), 11 deletions(-)\n\n\n-- \nCheers,\nRay Chuan\n"}]}