2

I see in the repo displayed on its web page:

This is the problematic folder in my repo

I can't pull it to my local computer, can't browse it, etc.

How can I resolve this issue?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Dominik Reinert
  • 1,075
  • 3
  • 12
  • 26

1 Answers1

2

That looks like a gitlink, a special entry in the index which records a SHA1.

It is typical of a nested git repo, which is ignored by the parent repo except for its root folder: the SHA1 of that nested git repo is recorded.

The problem is: the parent repo does not know from where this nested git repo comes from.
That is what a git submodule adds: a remote repo url in addition of the gitlink (SHA1). That url is stored in a .gitmodules file. That way, a git clone --recursive knows how to populate those gray folders: it knows what to clone (url) and what to checkout (the SHA1 of the gitlink).

But here, you just have the SHA1, no url.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • That means that I accidently had a nested git repo? And if I re-push it with a deleted sub-repo, that solves it? – Dominik Reinert Jun 03 '16 at 07:34
  • @DoRe Exactly. Move your nested git repo, then do a `git rm -- classicthesis`, commit and push. – VonC Jun 03 '16 at 07:35
  • Well, at first it worked. I moved the nested repo, `git rm -- classicthesis` worked as well. Then I removed the `git` files in the classicthesis foldes, copied it back again and tried to commit them again. I get the same problem again, though there are no git files left in classicthesis – Dominik Reinert Jun 03 '16 at 07:47
  • @DoRe did you ad them before committing? Is there any `.git/` subfolder anywhere? – VonC Jun 03 '16 at 07:48
  • the ./git folder was somehow added automatically. removed it a second time and now it works. thank you – Dominik Reinert Jun 03 '16 at 08:01