From: Sebastian Schuberth Date: Tue, 04 Aug 2015 07:31:18 GMT Subject: Re: [PATCH v4] clone: simplify string handling in guess_dir_name() Message-ID: In-Reply-To: <20150804043401.4494.43725@typhoon> On Tue, Aug 4, 2015 at 6:34 AM, Lukas Fleischer wrote: > I am currently on vacation and cannot bisect or debug this but I am > pretty confident that this patch changes the behaviour of directory name > guessing. With Git 2.4.6, cloning http://foo.bar/foo.git/ results in a > directory named foo and with Git 2.5.0, the resulting directory is > called foo.git. > > Note how the end variable is decreased when the repository name ends > with a slash but that isn't taken into account when simply using > strip_suffix() later... > > Is this intended? I did not intend this change in behavior, and I can confirm that reverting my patch restores the original behavior. Thanks for bringing this to my attention, I'll work on a patch. -- Sebastian Schuberth