git-fastclone 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ae5dc23c9ff5009beabe4df413f86d91078529ae
4
- data.tar.gz: 01a33c8d6845b0e52c5738184635f83c11cdccad
3
+ metadata.gz: af007992f8a6ef27abd4584902f9ac91b6d6e604
4
+ data.tar.gz: 8a24f9130efc548d102b738c74b79c5b8423aac5
5
5
  SHA512:
6
- metadata.gz: 34008d2358c42c9e5c81dbca01dc0054325015cc950a0cb054e39a18597fc8a4e241a7da3c14e402b4712f94089aa2f1cc6f09736e0f712f28cc58b405b4129d
7
- data.tar.gz: 6f0cec743678e8722758f1e3afba6327a78804fdf379077c9489f94b118113f3362efdc2c7ce2b612f02f4db0c9aed83b7d4bd212e4fa5d9cd6918574d4d333b
6
+ metadata.gz: a5ebd3ea56f26a3d61f0e87f34abe75d7a12d1a432e2272ece8ea1a218538a66c6e16e5ed2cd357d114f4f5834c0ecb8b6a50813093aefde02f904a053b8eb03
7
+ data.tar.gz: 5b1b8a89eb16aa4f5cabc90af8462c8653261ae6fb9e5e1c7fa88c888f9b76eab4a5863fa1e76f2af3e8ff644bc019b63e20d05dc2d9579d46826c00e814bff0
data/lib/git-fastclone.rb CHANGED
@@ -125,7 +125,9 @@ module GitFastClone
125
125
 
126
126
  path = ARGV[1] || path_from_git_url(url)
127
127
 
128
- fail "Clone destination #{File.join(Dir.pwd, path)} already exists!" if Dir.exist?(path)
128
+ if Dir.exist?(path)
129
+ fail "Clone destination #{File.join(abs_clone_path, path)} already exists!"
130
+ end
129
131
 
130
132
  self.reference_dir = ENV['REFERENCE_REPO_DIR'] || DEFAULT_REFERENCE_REPO_DIR
131
133
  FileUtils.mkdir_p(reference_dir)
@@ -1,3 +1,3 @@
1
1
  module GitFastCloneVersion
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.3'
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.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Tauraso