From: Johannes Sixt Date: Fri, 05 Aug 2011 11:12:06 GMT Subject: Re: [PATCH] fast-export: quote paths in output Message-ID: <4E3BD006.6010005@viscovery.net> In-Reply-To: <20110805105526.GA22480@sigill.intra.peff.net> Am 8/5/2011 12:55, schrieb Jeff King: > +test_expect_success 'fast-export quotes pathnames' ' > + git init crazy-paths && > + (cd crazy-paths && > + >"$(printf "path with\\nnewline")" && > + >"path with \"quote\"" && > + >"path with \\backslash" && > + >"path with space" && Please construct the tree object using git-update-index's --cacheinfo or --index-info rather than using actual files and git add so that the test can pass on filesystems that do not allow newlines, quotes, or backslashes(!) in filenames. -- Hannes -- "Atomic objects are neither active nor radioactive." -- Programming Languages -- C++, Final Committee Draft (Doc.N3092)