RE: [bug] Cloning SSH repo into /tmp
- From
Randall S. Becker <rsbecker@nexbridge.com>
- Date
- Oct 22, 2020, 14:55 UTC
- Message-ID
- <000601d6a883$66d8e180$348aa480$@nexbridge.com>
- In-Reply-To
- <CAKuTeyftpz8mQiiy2S56pxmW0fzCENAQ8=gmaTE5a-Ef5g216g@mail.gmail.com>
On October 22, 2020 6:28 AM, Adrien Berchet wrote:
Show 17 quoted lines
> I encountered a quite weird bug when I tried to clone a repository into the > /tmp folder (I just wanted to test something, so I was working in /tmp). > > I run the following command in /tmp : > git clone ssh://[user]@[host]/project/[project_name] > and I got the following error: > fatal: the protocol '/tmp/ssh' is not supported > > I got the same result if a run the following command from /tmp directory: > git clone ssh://[user]@[host]/project/[project_name] /tmp/project_name > > Nevertheless, the command works in other directories. Even the second > command works when run from another directory (this command: git clone > ssh://[user]@[host]/project/[project_name] /tmp/project_name). > > It is very specific and can easily be worked around so it is no big deal but I > preferred reporting this in case it hides something else.
What platform are you running on? I have experienced similar when /tmp is linked to a separate file system with complex ACLs.
Regards, Randall
-- Brief whoami: NonStop developer since approximately 211288444200000000 UNIX developer since approximately 421664400 -- In my real life, I talk too much.