Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2017-12-20 03:04:47

Fairor
Member
Registered: 2017-11-23
Post 17/24

Empty Extras folder for Pokered?

Another dumb question here. The Extras folder for Pokered seems to be empty every time I clone the Pokered repository. I also noticed the folder is named extras @ 0e17989 on github. Why is this?

Last edited by Fairor (2017-12-20 03:10:50)

Offline

#2 2017-12-20 04:25:11

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 3,513/3,578

Re: Empty Extras folder for Pokered?

If your extras folder is empty, you forgot to use git clone --recursive https://github.com/pret/pokered when you cloned the project. The --recursive flag is important.

Offline

#3 2017-12-20 04:54:15

Ammako
Member
Registered: 2016-03-06
Post 131/158

Re: Empty Extras folder for Pokered?

Maya Hack wrote:

I also noticed the folder is named extras @ 0e17989 on github. Why is this?

It's commit 0e17989 of pokemon-reverse-engineering-tools. If you click on the folder it takes you to the repository for it.

extras isn't actually a part of pokered itself, but a submodule, so it's added as a link to it to another repository.
git clone will just download the files that are included in the repository you are cloning from, and adding --recursive makes it also download the files for linked submodules off their repository to include it in the right folders.

Imagine a tree, the main repository is at the root, and submodules are on lower branches of the tree. Just git clone would only download the root, while --recursive makes it fetch until further down the tree to also get submodules/dependencies from other repositories.

I may or may not be using the correct terminology for this stuff (especially that analogy which shouldn't be taken at face value), but that's the gist of it.

Last edited by Ammako (2017-12-20 04:57:42)

Offline

#4 2017-12-20 05:54:34

Fairor
Member
Registered: 2017-11-23
Post 18/24

Re: Empty Extras folder for Pokered?

Oh wow, thank you heaps! This worked. I had been trying to figure out how to get branches cloned too.

edit: Figured it all out now whoo.

Last edited by Fairor (2017-12-20 06:11:35)

Offline

#5 2017-12-21 00:38:52

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,049/1,119

Re: Empty Extras folder for Pokered?

If you forget to include --recursive, you don't have to delete the repository and re-clone correctly
Instead, simply do:

git submodule init
git submodule update

Offline

Board footer

Powered by FluxBB