git-submodules

Empty Git submodule folder when repo cloned

两盒软妹~` 提交于 2020-12-27 07:28:38
问题 I have one repo hosted at https://github.com/aikiframework/json . On my local copy, I added a submodule using the command git submodule add git@github.com:jcubic/json-rpc.git json-rpc Then I did a commit and push, and the changes appear on GitHub (I can click on it). But when I clone the repo git clone https://github.com/aikiframework/json.git the submodule folder json-rpc is empty. What am I missing here? Did I forget about something? Why is that folder empty? 回答1: OK I found it, needed to

Unexpected installation of GIT submodule

强颜欢笑 提交于 2020-12-15 00:44:11
问题 I have such project structure: ├── mypkg │ └── __init__.py ├── setup.py └── submodules └── subm ├── setup.py └── subm └── __init__.py And I need to install submodules/subm so it would be available in the VENV. I try to do it by calling "pip" in a subprocess. So I have such "setup.py" files: mypkg/setup.py : #!/usr/bin/env python import inspect import os import sys import subprocess import setuptools from setuptools.command.install import install from setuptools.command.develop import develop

GIT error: fatal: /usr/libexec/git-core/git-submodule cannot be used without a working tree

心不动则不痛 提交于 2020-12-03 07:24:48
问题 I have a git repo with a submodule. I would use in post-receive hook file: git --git-dir="$GIT_DIR" --work-tree="$GIT_WORKDIR1" submodule update --init --recursive but I get the following error: remote: fatal: /usr/libexec/git-core/git-submodule cannot be used without a working tree. I did not get solution for this problem. What should I do to make it work? 回答1: You may see this error if you've renamed the path (working-tree) of a git submodule. In my case I had updated the path in

Fatal Error when updating submodule using GIT

二次信任 提交于 2020-11-30 02:22:11
问题 I am trying to update the submodules of this git repositary but I keep getting a fatal errors: [root@iptlock ProdigyView]# git submodule update --recursive Cloning into core... Permission denied (publickey). fatal: The remote end hung up unexpectedly Clone of 'git@github.com:ProdigyView/ProdigyView-Core.git' into submodule path 'core' failed Or this way [root@iptlock root]# git clone --recursive https://github.com/ProdigyView/ProdigyView.git Cloning into ProdigyView... remote: Counting

Fatal Error when updating submodule using GIT

谁说胖子不能爱 提交于 2020-11-30 02:21:10
问题 I am trying to update the submodules of this git repositary but I keep getting a fatal errors: [root@iptlock ProdigyView]# git submodule update --recursive Cloning into core... Permission denied (publickey). fatal: The remote end hung up unexpectedly Clone of 'git@github.com:ProdigyView/ProdigyView-Core.git' into submodule path 'core' failed Or this way [root@iptlock root]# git clone --recursive https://github.com/ProdigyView/ProdigyView.git Cloning into ProdigyView... remote: Counting