Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivial Bug: Installer is not using shallow cloning for submodules #1743

Closed
xrobau opened this issue Nov 10, 2016 · 7 comments
Closed

Trivial Bug: Installer is not using shallow cloning for submodules #1743

xrobau opened this issue Nov 10, 2016 · 7 comments

Comments

@xrobau
Copy link

xrobau commented Nov 10, 2016

While watching the installer run through, I noticed that most (all?) modules are shallow cloned.

Disregarding if that is a good idea or not (personally, I think it's a BAD idea, but that's not for this ticket), I noticed that you're not shallow cloning the SUBMODULES.

~/RetroPie-Setup/tmp/build/lr-ppsspp ~/RetroPie-Setup

= = = = = = = = = = = = = = = = = = = = =
Getting sources for 'lr-ppsspp' : PlayStation Portable emu - PPSSPP port for libretro
= = = = = = = = = = = = = = = = = = = = =

git clone --depth 1 "https://github.com/libretro/libretro-ppsspp.git" "/root/RetroPie-Setup/tmp/build/lr-ppsspp"
Cloning into '/root/RetroPie-Setup/tmp/build/lr-ppsspp'...
Submodule 'dx9sdk' (https://github.com/hrydgard/minidx9.git) registered for path 'dx9sdk'
Submodule 'ext/armips' (https://github.com/Kingcom/armips) registered for path 'ext/armips'
Submodule 'ffmpeg' (https://github.com/libretro/ppsspp-ffmpeg.git) registered for path 'ffmpeg'
Submodule 'lang' (https://github.com/hrydgard/ppsspp-lang.git) registered for path 'lang'
Submodule 'native' (https://github.com/libretro/ppsspp-native.git) registered for path 'native'
Submodule 'pspautotests' (https://github.com/hrydgard/pspautotests.git) registered for path 'pspautotests'
Cloning into 'dx9sdk'...
Submodule path 'dx9sdk': checked out 'ec19e643461c84dbb256f6faaaab02cba61d4edc'
Cloning into 'ext/armips'...
Submodule path 'ext/armips': checked out '8bd93be9ba715d2f5723857edacf936ae904d07c'
Cloning into 'ffmpeg'...

And it sits there.. This is because ffmpeg is a huge repository.

I would suggest you add --shallow-submodules to your git clone command, so only the required hash is retrieved.

@joolswills
Copy link
Member

@xrobau
Copy link
Author

xrobau commented Nov 10, 2016

Hmm, I think that's right. I was going to actually try it after this had finished... It may not be possible.

@joolswills
Copy link
Member

(I was using --depth since older git doesn't have --shallow-submodules) - im reverting. sorry.

joolswills added a commit that referenced this issue Nov 10, 2016
@xrobau
Copy link
Author

xrobau commented Nov 10, 2016

What are the chances of you guys accepting a pull request to NOT use shallow cloning and to use persistent directories for git checkouts? (I'm on IRC at the moment, if you want to talk about it there)

@joolswills
Copy link
Member

Bearing in mind x86 is not the primary target for retropie (rpi with small sd cards are), it would have to be an optional feature etc.

@joolswills
Copy link
Member

I added a quick variable - will work for most stuff, but there may be issues

sudo __persistent_repos=1 ./retropie_setup.sh
sudo __persistent_repos=1 ./retropie_packages.sh

@joolswills
Copy link
Member

variable name likely to change in the future and may be set automatically for desktop machines, but you can give it a test now anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants