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 +4 -4
- data/lib/git/make_mirror/version.rb +1 -1
- data/lib/git/make_mirror.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efff87fff538d660621be838414d26c43124178c
|
4
|
+
data.tar.gz: 6e31013b4cd6761a614211e8805388a193acd1fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ab3a8839e02876c5f2f6daceb60468b1a7553f68fb3788269197137c8d24ed0f6869b4df77520fa7a3ce702aada90958685fbf2b4feaea4fe75e56b0cb4000d
|
7
|
+
data.tar.gz: ece7d078a83e82a15d8d059e5224c3e587f79fca1f56460cac35637b606f40c05179ceace93088597a9ffee2596efc612fbcc7a7fdb10d72f061700f8fa7b6cd
|
data/lib/git/make_mirror.rb
CHANGED
@@ -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
|