Re: [PATCH 2/2] worktree: provide better prefix to go back to original cwd
On Thu, Oct 7, 2010 at 11:46 AM, <pclouds@gmail.com> wrote:
Show 9 quoted lines
> + /* Worktree and cwd are on different drives? */
> + if (len == 3 && has_dos_drive_prefix(cwd)) {
> + if (startup_info) {
> + /* make_path_to_path will add the trailing slash */
> + startup_info->cwd_to_worktree = make_path_to_path(NULL, worktree);
> + startup_info->worktree_to_cwd = make_path_to_path(NULL, cwd);
> + }
> + return NULL;
> + }Went for lunch and realized this code is just wrong. Gaahh..
--
Duy