Re: [PATCH v4] clone: simplify string handling in guess_dir_name()
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Aug 5, 2015, 06:08 UTC
- Message-ID
- <20150805060852.GA1103@pks-pc.localdomain>
- In-Reply-To
- <20150804224246.GA29051@sigill.intra.peff.net>
On Tue, Aug 04, 2015 at 06:42:46PM -0400, Jeff King wrote:
> On Tue, Aug 04, 2015 at 09:31:18AM +0200, Sebastian Schuberth wrote:
[snip]
Show 7 quoted lines
> Sadly we cannot just `strip_suffix_mem(repo, &len, "/.git"))` in the > earlier code, as we have to account for multiple directory separators. I > believe the above code does the right thing, though. I haven't looked at > how badly it interacts with the other guess_dir_name work from Patrick > Steinhardt that has been going on, though. > > -Peff
It shouldn't be hard rebasing my work onto this. If it's being applied I'll come up with a new version.
Patrick