From: Junio C Hamano Date: Sun, 07 Apr 2013 17:29:03 GMT Subject: Re: [PATCH 1/2] bundle: Accept prerequisites without commit messages Message-ID: <7v61zy45cw.fsf@alter.siamese.dyndns.org> In-Reply-To: <7va9pa5k9u.fsf@alter.siamese.dyndns.org> Junio C Hamano writes: > Lukas Fleischer writes: > >> While explicitly stating that the commit message in a prerequisite >> line is optional, > > Good spotting. What e9ee84cf28b6 (bundle: allowing to read from an > unseekable fd, 2011-10-13) meant to say was the SP was optional but s/say was the SP was optional/say was not the SP was optional/ > we want to allow a tip bundled to have a commit without any commit > log message (hence making it "optional"), and the check you are > looking at does try to enforce. What was buggy was that the > comparison did not take into account that the codepath earlier > called rtrim() on it, stripping "-SP" of the > trailing SP it wants to look for.