GoCD cloning git repository with submodule

38 views
Skip to first unread message

Shivani Shinde

unread,
Apr 15, 2020, 7:08:49 AM4/15/20
to go-cd
Hi all,
For a lot of time, I have been using bash scripts to generate builds(clone the repo and execute commands). Now I want to try a different approach:
  1. Mention git repository in Materials.
  2. Added tasks to generate the build.
While I mention the materials, I get the following error:

Error performing command: --- Command ---
git submodule init
--- Environment ---
{}
--- INPUT ----
 
 
--- EXIT CODE (128) ---
--- STANDARD OUT ---
 
--- STANDARD ERR ---
STDERR
: fatal: No url found for submodule path 'store/include/common' in .gitmodules
---


Now, for the repository I am trying to clone, I do not want git submodule init to execute.
How can I change any settings or what should I do, due to which this command won't run? 

NOTE: When I used the bash scripts and cloned this repo, I never got such an error. And I also have other repositories which clone without any such error.

Any help will be appreciated!

Thank you!

Aravind SV

unread,
Apr 15, 2020, 9:27:50 AM4/15/20
to go...@googlegroups.com
Hello,

On Wed, Apr 15, 2020 at 04:08:49 -0700, Shivani Shinde wrote:
> Now, for the repository I am trying to clone, I *do not want* git submodule
> init to execute.
> How can I change any settings or what should I do, due to which this
> command won't run?

There's no way to not pull submodules. Usually you'd expect submodules to be valid. If not valid, can it be removed?

Cheers,
Aravind

Shivani Shinde

unread,
Apr 17, 2020, 12:40:50 AM4/17/20
to go-cd
Thank you for responding. 
I will check with the repository f those can be removed.

Thank you.
Reply all
Reply to author
Forward
0 new messages