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

git pull instead of git clone #259

Closed
est opened this issue Nov 24, 2014 · 2 comments
Closed

git pull instead of git clone #259

est opened this issue Nov 24, 2014 · 2 comments

Comments

@est
Copy link

est commented Nov 24, 2014

Hi,

I have a fairly large git project wanna to deploy using mina.

For capistrano there's a handly config allows you to use git pull instead of git clone

set :deploy_via, :remote_cache
set :copy_exclude, [ '.git' ]

So deploy is much faster. Can we make it happen also on mina? Thanks!

@gabskoro
Copy link
Member

Hi,

We don't clone the project every time you deploy, just the first tmie, mina already uses git fetch. (same as pull, but without merge).

@est
Copy link
Author

est commented Nov 25, 2014

@gabskoro You are correct. Mina looks really cool!

$/.rvm/gems/ruby-2.1.2/gems/mina-0.3.1/lib/mina/git.rb: #{echo_cmd %[(cd "#{deploy_to}/scm" && git fetch "#{repository!}" "#{branch}:#{branch}" --force)]}

@est est closed this as completed Nov 25, 2014
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