-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Investigate use of --depth 1
for git cloning
#217
Comments
This should work nicely: git clone URL -b TAG --depth 1 |
As mentioned above, you can replace the code that currently does a clone followed by a checkout of the correct branch with the single Alternatively, when you do a So, currently if a repo is cloned it is added to the cache, then a copy is made in the components folder where a
If it is decided that caching isn't so important any more then you can just clone straight into the components folder. From some testing and reading around it seems that |
Being used in the rewrite! |
yay |
This is causing problems for me in the Example:
This is what happens in My local git version: Unfortunately because the purpose of our Github Enterprise server is to keep it out of the public I'm not provide access for testing but I'm happy to try anything out. |
@dylang that's strange. We will need some extra information to understand the real reason. Indeed, accessing a repository within your GitHub enterprise server would be useful. Would you be able to cooperate with me, perhaps giving me access to a new dummy repository of your server? If so, feel free to send me an email so we can start the debug process. |
@satazor I wish i could do that but our Github Enterprise instance is behind our firewall. I'll send some emails today to our admins and Git experts and see if they have any ideas. |
@satazor I have a potential workaround:
This waits forever:
This works:
The difference is changing the protocol from |
You could try setting the inverse of this answer on stackoverflow: http://stackoverflow.com/questions/15669091/bower-install-using-only-https I've tried to I would suggest using the |
@satazor I have different experience using These both took the same amount of time for me (1 second): Here's a test using a repo with a large history ad
I did it twice in case there was some caching going on. Note: I'm in the US and on a very fast connection if that matters. |
Strange. Even the |
@satazor I would trust the The suggestion you posted might work but it will be easier for us to just standardize on |
having the same issue here |
newest bower disabled shallow cloning for non-github hosts |
Would make it faster to clone, but not sure how it works with tags. Needs some investigation.
The text was updated successfully, but these errors were encountered: