All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robin Rosenberg <robin.rosenberg@dewire.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org, Johannes Sixt <j6t@kdbg.org>,
	Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] Handle UNC paths everywhere
Date: Mon, 25 Jan 2010 21:04:10 +0100	[thread overview]
Message-ID: <201001252104.10328.robin.rosenberg@dewire.com> (raw)
In-Reply-To: <alpine.DEB.1.00.1001251553150.8733@intel-tinevez-2-302>

måndagen den 25 januari 2010 18.34.01 skrev  Johannes Schindelin:
> I am also not quite sure if you can get away with having the same offset
> for both: if I have "C:\blah" and strip off "C:", I always have a
> directory separator to bounce against, whereas I do not have that if I
> strip off the two "\\" of a UNC path.  Besides, I maintain that the host
> name, and maybe even the share name, should not ever be stripped off!

Advices needed:

d:somedir (when cwd=d:\msysgit, == /) may be tricky to fix.
Msysgit seems confused by the syntax and treats it as d:\ 

roro@SIENA / (master)
$ cmd
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

D:\msysgit>exit

roro@SIENA / (master)
$ mkdir d:x
mkdir: cannot create directory `d:x': File exist

roro@SIENA / (master)
$ cd d:x

roro@SIENA /d
$ ls -l x
ls: x: No such file or directory

roro@SIENA /d
$

From that I think that even if we try to make git handle d:path, msys
will break regardless. We can fix truly absolute and normal relative paths.

-- robin

  parent reply	other threads:[~2010-01-25 20:04 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-25  0:55 [PATCH] Handle UNC paths everywhere Robin Rosenberg
2010-01-25  9:36 ` Sverre Rabbelier
2010-01-25  9:58   ` Robin Rosenberg
2010-01-25 10:11   ` Erik Faye-Lund
2010-01-25 10:22     ` Sverre Rabbelier
2010-01-25 11:01       ` Robin Rosenberg
2010-01-25 11:06         ` Sverre Rabbelier
2010-01-25 11:17           ` Erik Faye-Lund
2010-01-25 17:34 ` Johannes Schindelin
2010-01-25 17:57   ` Erik Faye-Lund
2010-01-25 18:19     ` Johannes Schindelin
2010-01-25 19:45       ` Erik Faye-Lund
2010-01-25 19:37     ` Robin Rosenberg
2010-01-25 19:48       ` Erik Faye-Lund
2010-01-25 20:15         ` Robin Rosenberg
2010-01-25 19:45   ` Robin Rosenberg
2010-01-26 10:59     ` Johannes Schindelin
2010-01-25 20:04   ` Robin Rosenberg [this message]
2010-01-26 11:01     ` Johannes Schindelin
2010-01-25 20:07 ` Johannes Sixt
2010-01-25 21:42   ` Robin Rosenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201001252104.10328.robin.rosenberg@dewire.com \
    --to=robin.rosenberg@dewire.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=j6t@kdbg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.