Re: [PATCH] clone: local URLs are not for ssh

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

 



On Thu, Oct 3, 2013 at 1:40 AM, Torsten Bögershausen <tboegi@xxxxxx> wrote:
> On 2013-09-29 02.33, Duy Nguyen wrote:
>> On Sun, Sep 29, 2013 at 2:37 AM, Torsten Bögershausen <tboegi@xxxxxx> wrote:
>>> "git clone /foo/bar:baz" or "git clone ../foo/bar:baz"
>>> are meant to clone from the local file system, and not to clone
>>> from a remote server over git-over-ssh.
>>
>> I don't think this is necessary. Commit 6000334 should detect both
>> cases fine because both have a slash before the first colon.
> Sorry for the noise, I noticed it when I was trying to construct test cases.
>
> What do we think about adding this at the end of t5505:

As usual more tests are usually better. But is t5505-remote.sh the
best place? That file seems about "git remote"..

>
>
>
> test_expect_success 'fetch fail [noexistinghost0:2223]:blink.git' '
>         (
>                 ! git fetch [noexistinghost0:2223]:blink.git 2>err &&
>                 grep ssh err &&
>                 rm err
>         )
> '
>
> test_expect_success 'fetch fail noexistinghost1:2223:blink.git' '
>         (
>                 ! git fetch "noexistinghost1:2223:blink.git" 2>err &&
>                 grep ssh err &&
>                 rm err
>         )
> '
>
> test_expect_success 'fetch fail noexistinghost2:2223' '
>         (
>                 ! git fetch "noexistinghost2:2223" 2>err &&
>                 grep ssh err &&
>                 rm err
>         )
> '
> test_expect_success 'fetch fail ./noexistinghost4:2223"' '
>         (
>                 ! git fetch "./noexistinghost4:2223" 2>err &&
>                 grep "does not appear to be a git repository" err &&
>                 rm err
>         )
> '
>
>
>
>
>
>
>
>
>
>
>
>



-- 
Duy
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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]