# Git clone slowness after upgrading to Elite plan

**URL:** <https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069>\
**Category:** Issues\
**Tags:** git-clone\
**Created:** [May 11, 2018, 4:30pm UTC](https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069 "2018-05-11T16:30:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nebil](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@nebil](https://discuss.bitrise.io/u/nebil)\
**Post date:** [May 11, 2018, 4:30pm UTC](https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069/1 "2018-05-11T16:30:51Z")

</div>

Hi,  
we have recently requested the Elite plan trial.

We have noticed a significant improvement on the build, however we also noticed sometime the git clone steps takes ages to run (more then 25 minutes). This used to always take no more then 90 seconds to compete, but after we joined the Elite plan we see at least 1/5 builds taking an excessive amount of time. Here’s an example:

> **[Bitrise - Mobile Continuous Integration and Delivery](https://app.bitrise.io/users/sign_in)**
>
> Mobile Continuous Integration and Delivery for your whole team, with dozens of integrations for your favourite services.

Our repo is over 1gb and we are not using any cache for this. However we can’t understand why this would take so long. Can you provide more clarity on this?

Thanks

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [May 14, 2018, 3:44pm UTC](https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069/2 "2018-05-14T15:44:11Z")

</div>

Hi @nebil,  
could you please also share an example build log, where the git clone is significantly faster?

---

<div class="post-metadata">

**Author:** ![nebil](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@nebil](https://discuss.bitrise.io/u/nebil)\
**Post date:** [May 14, 2018, 4:28pm UTC](https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069/3 "2018-05-14T16:28:52Z")

</div>

Hi @godreikrisztian thanks for your message.  
here’s the log part from this morning:

±-----------------------------------------------------------------------------+  
| (1) git-clone |  
±-----------------------------------------------------------------------------+  
| id: git-clone |  
| version: 4.0.11 |  
| collection: [https://github.com/bitrise-io/bitrise-steplib.git](https://github.com/bitrise-io/bitrise-steplib.git) |  
| toolkit: go |  
| time: 2018-05-14T06:44:46-07:00 |  
±-----------------------------------------------------------------------------+  
| |  
e[36mINFOe[0m[06:44:46] \* e[32;1m[OK]e[0m Step dependency (go) installed, available.  
e[34;1mconfig:  
e[0m

- RepositoryURL: [git@bitbucket.org](mailto:git@bitbucket.org):depop/depop-ios.git
- CloneIntoDir: /Users/vagrant/git
- Commit: ee9f90c2a6f3
- Tag:
- Branch: feature/DD-5942
- BranchDest: dev
- PRID: 2126
- PRRepositoryURL: [git@bitbucket.org](mailto:git@bitbucket.org):depop/depop-ios.git
- PRMergeBranch:
- ResetRepository: false
- CloneDepth: 0
- BuildURL: XXXX
- BuildAPIToken: XXXXXX
- UpdateSubmodules: true
- ManualMerge: true  
e[34;1mgit "init"e[0m  
Initialized empty Git repository in /Users/vagrant/git/.git/  
e[34;1mgit “remote” “add” “origin” "git@bitbucket.org:depop/depop-ios.git"e[0m  
e[34;1mgit “fetch” “origin” "dev"e[0m  
Warning: Permanently added ‘[bitbucket.org](http://bitbucket.org),104.192.143.2’ (RSA) to the list of known hosts.  
From [bitbucket.org](http://bitbucket.org):depop/depop-ios

- branch dev -\> FETCH\_HEAD
- [new branch] dev -\> origin/dev  
e[34;1mgit “checkout” "dev"e[0m  
Switched to a new branch ‘dev’  
Branch ‘dev’ set up to track remote branch ‘dev’ from ‘origin’.  
e[34;1mgit “merge” "origin/dev"e[0m  
Already up to date.  
commit hash: 3e8809ef0c99f0e8d6551aca8a530d2a88478f93  
e[34;1mgit “fetch” “origin” "feature/DD-5942"e[0m  
Warning: Permanently added ‘[bitbucket.org](http://bitbucket.org),104.192.143.2’ (RSA) to the list of known hosts.  
From [bitbucket.org](http://bitbucket.org):depop/depop-ios
- branch feature/DD-5942 -\> FETCH\_HEAD
- [new branch] feature/DD-5942 -\> origin/feature/DD-5942  
e[34;1mgit “merge” "ee9f90c2a6f3"e[0m  
Updating 3e8809ef0…ee9f90c2a  
Fast-forward  
[these lines were removed]  
4 files changed, 4 insertions(+), 10 deletions(-)  
e[34;1mgit “submodule” “update” “–init” "–recursive"e[0m  
e[34;1mgit “checkout” "–detach"e[0m  
HEAD is now at ee9f90c2a… do not translate ‘Terms of Service’ and ‘Privacy Policy’ in the app  
e[34;1m  
Exporting git logs  
e[0m  
=\> GIT\_CLONE\_COMMIT\_MESSAGE\_SUBJECT  
value: XXXXXXXX

=\> GIT\_CLONE\_COMMIT\_MESSAGE\_BODY  
value:

=\> GIT\_CLONE\_COMMIT\_AUTHOR\_NAME  
value: XXXXX

=\> GIT\_CLONE\_COMMIT\_AUTHOR\_EMAIL  
value: [XXXX@depop.com](mailto:XXXX@depop.com)

=\> GIT\_CLONE\_COMMIT\_COMMITER\_NAME  
value: XXXXXX

=\> GIT\_CLONE\_COMMIT\_COMMITER\_EMAIL  
value: [XXXX@depop.com](mailto:XXXX@depop.com)

=\> GIT\_CLONE\_COMMIT\_HASH  
value: ee9f90c2a6f33bab7f8f34589fb6499cf078f700

=\> GIT\_CLONE\_COMMIT\_COUNT  
value: 18611

e[32;1m  
Successe[0m  
| |  
±–±--------------------------------------------------------------±---------+  
| e[32;1m✓e[0m | e[32;1mgit-clonee[0m | 108 sec |  
±–±--------------------------------------------------------------±---------+

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [May 17, 2018, 10:40am UTC](https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069/4 "2018-05-17T10:40:05Z")

</div>

Hi @nebil,

this is a significant speed difference between the two builds (27 min vs 108 sec).

Both build happened on the Elite machines? Is it possible that it was just a temporary issue on Bitbucket, do you regularly see this slow git clones?

---

<div class="post-metadata">

**Author:** ![nebil](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@nebil](https://discuss.bitrise.io/u/nebil)\
**Post date:** [May 17, 2018, 11:05am UTC](https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069/5 "2018-05-17T11:05:41Z")

</div>

hi @godreikrisztian yes this is big issue we have only experienced once we migrated to the Elite plan. is it possible that those machines have a different access to the network, more subjected to random latency?

thank you

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [May 18, 2018, 9:50am UTC](https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069/6 "2018-05-18T09:50:23Z")

</div>

@nebil could you please write us a message on [bitrise.io](http://bitrise.io) on-site-chat? We need more information to identify the issue.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [June 4, 2018, 4:00pm UTC](https://discuss.bitrise.io/t/git-clone-slowness-after-upgrading-to-elite-plan/5069/7 "2018-06-04T16:00:04Z")

</div>

This topic was automatically closed after 14 days. New replies are no longer allowed.
