Re: [PATCH 2/2] worktree: provide better prefix to go back to original cwd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 7, 2010 at 11:46 AM,  <pclouds@xxxxxxxxx> wrote:
> + Â Â Â Â Â Â Â /* 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
ÿô.nlj·Ÿ®‰­†+%ŠË±é¥Šwÿº{.nlj· ŠßžØn‡r¡öë¨è&£ûz¹Þúzf£¢·hšˆ§~†­†Ûÿÿïÿ‘ê_èæ+v‰¨þ)ßø

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]