git-fastclone 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of git-fastclone might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f2b4822387b6fa1c847455e8c09cf2bd48b711b
4
- data.tar.gz: c30eba26437f7f4f4160af9ce0bf8e9e662d36b6
3
+ metadata.gz: ae5dc23c9ff5009beabe4df413f86d91078529ae
4
+ data.tar.gz: 01a33c8d6845b0e52c5738184635f83c11cdccad
5
5
  SHA512:
6
- metadata.gz: ac6a82830270df7b8d1918905883cd9c8f9845f653b3a0886c3ca701f19fd84c5773e1179db7db0c3a83ab4469fe8abd013573fe19adf6babf9be28e10b2363a
7
- data.tar.gz: fdf2fec80e7b8e7a13aef313c0c231159a363c49f6ef6dd25f954b4e1ca8fced18512bd6cac66f624c331e98a1548caa8043e9b9addd841f5f4312bd9f1e9dd2
6
+ metadata.gz: 34008d2358c42c9e5c81dbca01dc0054325015cc950a0cb054e39a18597fc8a4e241a7da3c14e402b4712f94089aa2f1cc6f09736e0f712f28cc58b405b4129d
7
+ data.tar.gz: 6f0cec743678e8722758f1e3afba6327a78804fdf379077c9489f94b118113f3362efdc2c7ce2b612f02f4db0c9aed83b7d4bd212e4fa5d9cd6918574d4d333b
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  git-fastclone
2
2
  =============
3
3
  [![Build Status](https://travis-ci.org/square/git-fastclone.svg?branch=master)](https://travis-ci.org/square/git-fastclone)
4
+ [![Gem Version](https://badge.fury.io/rb/git-fastclone.svg)](http://badge.fury.io/rb/git-fastclone)
4
5
 
5
6
  git-fastclone is git clone --recursive on steroids.
6
7
 
@@ -31,6 +32,8 @@ It aggressively updates these mirrors from origin and then clones from the mirro
31
32
  directory of your choosing. It always works recursively and multithreaded to get your checkout up as
32
33
  fast as possible.
33
34
 
35
+ Detailed explanation [here][1].
36
+
34
37
 
35
38
  Usage
36
39
  -----
@@ -62,21 +65,21 @@ requests.
62
65
  When submitting code, please make every effort to follow existing conventions and style in order to
63
66
  keep the code as readable as possible.
64
67
 
65
- Before accepting any pull requests, we need you to sign an [Individual Contributor Agreement][1]
68
+ Before accepting any pull requests, we need you to sign an [Individual Contributor Agreement][2]
66
69
  (Google form).
67
70
 
68
71
 
69
72
  Acknowledgements
70
73
  ----------------
71
- [thoughtbot/cocaine][2] - jyurek and collaborators
74
+ [thoughtbot/cocaine][3] - jyurek and collaborators
72
75
 
73
- [robolson][3]
76
+ [robolson][4]
74
77
 
75
- [ianchesal][4]
78
+ [ianchesal][5]
76
79
 
77
- [mtauraso][5]
80
+ [mtauraso][6]
78
81
 
79
- [chriseckhardt][6]
82
+ [chriseckhardt][7]
80
83
 
81
84
 
82
85
  License
@@ -95,10 +98,10 @@ License
95
98
  See the License for the specific language governing permissions and
96
99
  limitations under the License.
97
100
 
98
-
99
- [1]: https://docs.google.com/a/squareup.com/forms/d/13WR8m5uZ2nAkJH41k7GdVBXAAbzDk00vxtEYjd6Imzg/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1
100
- [2]: https://github.com/thoughtbot/cocaine
101
- [3]: https://github.com/robolson
102
- [4]: https://github.com/ianchesal
103
- [5]: https://github.com/mtauraso
104
- [6]: https://github.com/chriseckhardt
101
+ [1]: https://corner.squareup.com/2015/11/fastclone.html
102
+ [2]: https://docs.google.com/a/squareup.com/forms/d/13WR8m5uZ2nAkJH41k7GdVBXAAbzDk00vxtEYjd6Imzg/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1
103
+ [3]: https://github.com/thoughtbot/cocaine
104
+ [4]: https://github.com/robolson
105
+ [5]: https://github.com/ianchesal
106
+ [6]: https://github.com/mtauraso
107
+ [7]: https://github.com/chriseckhardt
@@ -60,6 +60,8 @@ module GitFastClone
60
60
 
61
61
  DEFAULT_REFERENCE_REPO_DIR = '/var/tmp/git-fastclone/reference'
62
62
 
63
+ DEFAULT_GIT_ALLOW_PROTOCOL = 'file:git:http:https:ssh'
64
+
63
65
  attr_accessor :reference_dir, :prefetch_submodules, :reference_mutex, :reference_updated,
64
66
  :options, :logger, :abs_clone_path, :using_local_repo
65
67
 
@@ -90,6 +92,8 @@ module GitFastClone
90
92
  def run
91
93
  url, path, options = parse_inputs
92
94
  logger.info("Cloning #{url} to #{path}") if logger
95
+ Cocaine::CommandLine.environment['GIT_ALLOW_PROTOCOL'] =
96
+ ENV['GIT_ALLOW_PROTOCOL'] || DEFAULT_GIT_ALLOW_PROTOCOL
93
97
  clone(url, options[:branch], path)
94
98
  end
95
99
 
@@ -121,7 +125,7 @@ module GitFastClone
121
125
 
122
126
  path = ARGV[1] || path_from_git_url(url)
123
127
 
124
- fail "Clone destination #{path} already exists!" if Dir.exist?(path)
128
+ fail "Clone destination #{File.join(Dir.pwd, path)} already exists!" if Dir.exist?(path)
125
129
 
126
130
  self.reference_dir = ENV['REFERENCE_REPO_DIR'] || DEFAULT_REFERENCE_REPO_DIR
127
131
  FileUtils.mkdir_p(reference_dir)
@@ -1,3 +1,3 @@
1
1
  module GitFastCloneVersion
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-fastclone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Tauraso
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  version: '0'
65
65
  requirements: []
66
66
  rubyforge_project:
67
- rubygems_version: 2.4.6
67
+ rubygems_version: 2.4.8
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: git-clone --recursive on steroids!