git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-clone removes destination path after permission deny

From
AAgis <agis.anast@gmail.com>
Date
Aug 16, 2018, 12:08 UTC
Message-ID
<A1C23FEE-55CC-4888-9BD5-1C4566E83A38@gmail.com>
Hello.
I've recently observed the following:
    $ mkdir foo
    $ # try to clone from a repository that you have no access to
    $ git clone git@github.com:agis/private.git foo
    Cloning into 'foo'...
    Permission denied (publickey).
    fatal: Could not read from remote repository.
    Please make sure you have the correct access rights
    and the repository exists.
    $ ls foo
    ls: cannot access 'foo': No such file or directory
Is this expected behavior?

Thanks in advance, Agis

P.S. If this is something that should be fixed, I'd be happy to prepare a patch
Next: Agis
Message 1 of 3 in “git-clone removes destination path after permission deny”
  1. AgisAug 16, 2018
  2. AgisAug 16, 2018
  3. Jonathan NiederAug 16, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.