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

warning: --depth is ignored in local clones; use file:// instead. #56

Closed
jpascal opened this issue Sep 8, 2012 · 3 comments
Closed
Milestone

Comments

@jpascal
Copy link
Contributor

jpascal commented Sep 8, 2012

$ mina deploy
-----> Using git branch 'master'
       warning: --depth is ignored in local clones; use file:// instead.
       Cloning into ....
       done.
@rstacruz
Copy link
Member

rstacruz commented Sep 8, 2012

Ohh, silly me. I suppose that ought to be (lib/mina/git.rb):

- #{echo_cmd %[git clone "#{deploy_to}/scm" . --depth 1 --recursive --branch "#{branch}"]} &&
+ #{echo_cmd %[git clone "file://#{deploy_to}/scm" . --depth 1 --recursive --branch "#{branch}"]} &&

@rstacruz
Copy link
Member

rstacruz commented Sep 8, 2012

Wait, I'm not sure that's a good idea, using file:// will be slower (because it copies and doesn't use hardlinks). Looks like --depth is trully redundant afterall.

Ref: http://git-scm.com/book/en/Git-on-the-Server-The-Protocols

@rstacruz
Copy link
Member

rstacruz commented Sep 8, 2012

Scheduled for v0.2.1.

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