Bug: git submodule update doesn't give a prompt to add pubkey of remote repo host, and failed because of it.

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

 



Git version: git version 2.43.0.windows.1
OS: Windows 11 22H2 (22621.3007)
(I don't know whether it's a Windows-specific bug)

I cloned a project from one remote repo (A), and the project has a submodule from the other remote repo (B). Both of them are connected to the remote repo of which by SSH, and I added my pubkey to both of the repo providers.

I executed the command in project directory:

    git submodule init
    git submodule update

When updating, the following error happened:

    Cloning into '/path/to/submodule'...
    Host key verification failed.
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
    fatal: clone of 'user@host:repo/path.git' into submodule path '/path/to/submodule' failed
    Failed to clone 'themes/anzhiyu-ding-mod'. Retry scheduled
    Cloning into '/path/to/submodule'...
    Host key verification failed.
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
    fatal: clone of 'user@host:repo/path.git' into submodule path '/path/to/submodule' failed
    Failed to clone 'path/to/submodule' a second time, aborting

I cloned another repo from B. When I did it, I found I hadn't added the pubkey of repo B to the list of known hosts before.

    The authenticity of host 'host (XXX.XXX.XXX.XXX)' can't be established.
    ED25519 key fingerprint is SHA256:XXXXXXXXXXXXX.
    This key is not known by any other names.
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    Warning: Permanently added 'host' (ED25519) to the list of known hosts.

After that, I tried to execute `git submodule update` in the previous project and succeeded.

I think when I update submodule and I haven't added the key to the submodule remote repo, it needs to give a prompt to add the public key, just like cloning.




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

  Powered by Linux