Submodule '' (/. In repo-one, I have added a git submodule of repo-two (as a folder name docker). In this case, the protocol used appears to be https, yet the bash error is the same. Good afternoon folks We’re using CircleCI with BitBucket repositories. Then within the core/parent folder, initialize and updated the submodules: git submodule update -init -recursive I also tried the git clone command for the core/parent project, as shown in the original post, but without the -recurse-submodules option. The command is being used on Windows 7 via the Git Bash command line. You can clone with HTTPS in all your CI/CD jobs, and you can continue to use. The above configuration instructs Git to automatically deduce the URL to use when cloning sources. gitmodules file: submodule 'project' path project url. The process must be terminated using CTRL-C. Git submodules are a way of including one Git repository as a subdirectory of another repository. When your submodule is on the same GitLab server, you can also use relative URLs in your. When attempting to also clone submodules, the core/parent repo is cloned fine, but once the submdule cloning starts, everything hangs with the following bash error/notice:īash: /dev/tty: No such device or address The core/parent repo clones fine without the -recurse-submodules option. Here's the command being used on Windows 7 using the Git Bash command line: git clone -b -recurse-submodules However, after setting that up, if the project has submodules and the -recurse-submodules option is used on the git clone command, the process hangs with a bash error. When that is done, a Bitbucket project can be cloned without entering any credentials whatsoever. To avoid that, it is possible to create an SSH public/private key pair and add the public key to one's Bitbucket user profile. When cloning Git projects that have submodules, one must input credentials multiple times, once for the core/parent repo and once for each submodule.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |