git-make_mirror 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65d9ee5d3977f4ab59594d03dc21de92a31cecd4
4
- data.tar.gz: d0355c1dfb37831d2d855e14f4e3bcba78132d14
3
+ metadata.gz: efff87fff538d660621be838414d26c43124178c
4
+ data.tar.gz: 6e31013b4cd6761a614211e8805388a193acd1fa
5
5
  SHA512:
6
- metadata.gz: 5ff0ea7e7174e077714471284deae9c5678709aaf72c7ba5f3948ac95419ee54d0f2dd9b8d0dfb78e91182e9f240b353c92e7cf9906988740170802a231e3d0d
7
- data.tar.gz: d82d7d09a3f8cf79193a63cb63c5abd5f67bd7d1b9ea642351bf6918efb95326ca5b0310b9c28ab47b41160c4a050f0179cedca1120ea583752c8e6d70911cce
6
+ metadata.gz: 5ab3a8839e02876c5f2f6daceb60468b1a7553f68fb3788269197137c8d24ed0f6869b4df77520fa7a3ce702aada90958685fbf2b4feaea4fe75e56b0cb4000d
7
+ data.tar.gz: ece7d078a83e82a15d8d059e5224c3e587f79fca1f56460cac35637b606f40c05179ceace93088597a9ffee2596efc612fbcc7a7fdb10d72f061700f8fa7b6cd
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module MakeMirror
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -12,7 +12,9 @@ module Git
12
12
  opt :remote, "create a remote in the local repository", :type => :string
13
13
  opt :push, "push to the newly created mirror"
14
14
  end
15
-
15
+
16
+ Trollop::educate if remote_url.nil? || remote_url == ''
17
+
16
18
  git_remote_name = nil
17
19
 
18
20
  puts "creating remote repository"
@@ -42,7 +44,7 @@ module Git
42
44
  end
43
45
 
44
46
  def remote_url
45
- ARGV.last.strip
47
+ (ARGV.last || '').strip
46
48
  end
47
49
 
48
50
  def remote
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-make_mirror
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Reed