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

Cloning just the DIST-PHP folder instead of the whole project #157

Open
michael-milette opened this issue Nov 22, 2014 · 8 comments
Open

Comments

@michael-milette
Copy link
Contributor

With the WET-BOEW project, I am able to clone just its "dist" folder and everything under it using the following command:

 git clone https://github.com/wet-boew/wet-boew-dist.git dist

Is there a way to clone just the "dist-php" folder for the WET-BOEW-PHP project? I tried the following but it didn't work:

 git clone https://github.com/wet-boew/wet-boew-php-dist-php.git dist-php

Best regards,

Michael

@LaurentGoderre
Copy link
Member

With WET core, the dist is stored in a different repo. That's what that commands do. A dist repo doesn't exist for the php variant.

@michael-milette
Copy link
Contributor Author

Can a dist repo be created for the PHP variant?

@upsonp
Copy link
Member

upsonp commented Nov 25, 2014

I don't know if this will help http://stackoverflow.com/questions/2425059/how-to-pull-specific-directory-with-git

cd into the top of your repo copy

git fetch
git checkout HEAD path/to/your/dir/or/file

So if you clone the whole repo, then delete the demos-php directory. You should be able to use the above if all you want to do is grab the latest updates to the dist-php/ directory using

git fetch
git checkout HEAD dist-php/

You'd still have to clone the entire repo thought the first time.

@LaurentGoderre
Copy link
Member

Huh! I didn't know about that one!

@crochefort
Copy link
Contributor

Hey @upsonp I think you should update this page : https://github.com/wet-boew/wet-boew-php/wiki/Variant-Setup-for-New-Developers-v4.0
with your new information!

Why because it doesn't make sens to upload to production your demo-php folder and also all the other file in theme-gcwu-fegc ...

When i'm saying all the other file, I think about the 404, the servmessage... the demo folder and the docs folder.
just saying :)

@upsonp
Copy link
Member

upsonp commented Dec 2, 2014

Thanks @crochefort,

I'm just setting up a new PC so it might take me a git to get to it, but good suggestion.

@LaurentGoderre
Copy link
Member

Perhaps there is a way to apply this to submodules as well

@michael-milette
Copy link
Contributor Author

Thanks @upsonp !

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

4 participants