git submodule problem

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

 



Dear git,

Changing branch with

    git checkout --recurse-submodules <branch>

does not work when the branch does contain a new submodule.

Cloning a repo without submodules in master but submodules in the <branch> will reproduce this problem.

Error

    fatal: not a git repository: ../../.git/modules/module/esp32_peripherals
    fatal: could not reset submodule index

The alternative way does work

    git checkout <branch>
    git submodule update --init --recurse
    git clean -ffd

Best,

Erik Claij




[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