From: Junio C Hamano Date: Sun, 18 Jan 2009 00:48:57 GMT Subject: Re: [PATCH 2/2] http-push: remove MOVE step after PUT when sending objects to server Message-ID: <7viqod5thi.fsf@gitster.siamese.dyndns.org> In-Reply-To: "Ray Chuan" writes: > Currently, git PUTs to > > /repo.git/objects/1a/1a2b...9z_opaquelocktoken:1234-.... > > then MOVEs to > > /repo.git/objects/1a/1a2b...9z > > This is needless. In fact, the only time MOVE requests are sent is for > this sole purpose (ie. of renaming an object). > > A concern raised was repository corruption in the event of failure > during PUT. "put && move" won't afford any more protection than using > simply "put", since info/refs is not updated if a PUT fails, so there > is no cause for concern. That's a completely bogus reasoning. Normal operation inside the repository that was pushed into won't look at info/refs at all. The true reason you want to avoid put-then-move is...?