Re: git fetch over http:// left my repo broken
- From
- Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
- Date
- Apr 15, 2010, 11:33 UTC
- Message-ID
- <20100415113310.GA24305@LK-Perkele-V2.elisa-laajakaista.fi>
- In-Reply-To
- <g2y8c627c4f1004150251l3dc2ad17n352b149ac739d309@mail.gmail.com>
On Thu, Apr 15, 2010 at 11:51:25AM +0200, Christian Halstrick wrote:
Show 11 quoted lines
> Hi, > > some days back I fetched from a github repo with http protocol and > afterwards my local repo was broken. Since the fetch was done by a > cronjob I don't know whether the fetch reported an error. Problem is > that one pack file was corrupted because the github servers put the > repo I wanted to clone into some maintenance mode while I was > fetching. The pack file includes at the end the html source code - > which makes these files clearly corrupted. > > Git should detect this error and let the fetch fail, right?
At least with smart transports do verify pack hash (since git-index-pack does check it).
Maybe dumb HTTP transport grabs the index and pack and installs the downloaded versions (FAIL) instead of generating index from the pack (which would noitice the corruption)...
-Ilari