Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7882439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:17:05+00:00 2026-06-03T04:17:05+00:00

(Predominantly a Git question, but may be relevant to other PyroCMS users) I have

  • 0

(Predominantly a Git question, but may be relevant to other PyroCMS users)

I have a local repository of PyroCMS – the repo is a clone of a github fork of the main project. I also have a PyroCMS module, which is also a local clone of a github fork of that project.

I’ve put them both in separate directories.

~/Dropbox/websites/pyrocmscommunity-test/
~/Dropbox/github/PyroDatabase/

I want to add PyroDatabase as a submodule of pyrocmscommunity-test, so I can pull updates from github, keep track of my own changes etc.

I tried to do this by going to the top of the working tree and doing:

git submodule add ../../github/PyroDatabase/ addons/shared_addons/modules/

but it didn’t complete properly:

Cloning into 'addons/shared_addons/modules/database'...
ssh_exchange_identification: Connection closed by remote host
fatal: The remote end hung up unexpectedly

I don’t understand this as I didn’t specify an SSH connection, I just wanted to use the local repo. What is it trying to connect to and why?

Also, now, whenever I repeat the command, I get this:

'addons/shared_addons/modules' already exists in the index

But I don’t understand this as there is no .gitmodules file and no mention of the modules files in .gitconfig either.

What am I doing wrong and how do I reset things?

Thanks,
William

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:17:06+00:00Added an answer on June 3, 2026 at 4:17 am

    When specifying relative URLs for submodule location, Git takes it relatively to the origin (here Github) URL of the current projet, and not relatively to the project location on filesystem. This is because a submodule is a permanent pointer to a remote location. Here Git tries to contact the origin github repository with two levels up, which is an incorrect URL.

    As for the second error Git has created an entry in the staging area of your index, and it must be removed (unstaged) with

    git rm -r addons/shared_addons/modules
    

    Then retry with the absolute path to your clone:

    git submodule add $HOME/Dropbox/github/PyroDatabase/ addons/shared_addons/modules/
    

    Anyway adding a local clone of your project as a submodule of itself is weird, since submodules are meant to be a different repo of the containing project. Why not keep track of local and origin commits in standard Git fashion?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a 2-dimensional array of objects (predominantly, but not exclusively strings) that I
I have a project where I use two build settings predominantly. Unfortunately today something
I'm coming from predominantly using VIM for everything, and so I have a habit
I'm currently a beginner at JavaScript and predominantly code in Java. My Question is
I have an SQL Server (2008 R2) based (C# WinForms) application that predominantly runs
I usually use forward declaration predominantly, if I have a class that does not
I'm predominantly a .Net developer but am wanting to look into ruby on rails.
Disclaimer: I have little background in Java, since I am predominantly a C# developer.
I have a ListBox control in WPF which contains items of variable height (predominantly
I am a predominantly PHP developer. I realize in this day and age specialization

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.