scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

Deploying with repos that have many remote branches is slow #27

Closed jamesmoss closed 11 years ago

jamesmoss commented 11 years ago

Here you're calling git remote show origin to detect unpushed commits as part of the validation before deployment.

We have repo with 130~ remote branches (I'm tracking about 10 locally) with 6500+ commits and this command is incredible slow to run (2min 43sec). Is there another, faster way to detect this?

jamesmoss commented 11 years ago

Could we use git cherry -v or git fetch in this situation?

scttnlsn commented 11 years ago

Cool...never knew about that Git command. I think it should do the trick- have you tried it on your repo with lots of remotes?

jamesmoss commented 11 years ago

Yep, it's fast; instantaneous really. Want me to do a PR?

scttnlsn commented 11 years ago

Great. That'd be awesome!

scttnlsn commented 11 years ago

Fixed in #28.