obazoud-git-external 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/git-external +1 -16
- metadata +3 -3
data/bin/git-external
CHANGED
@@ -232,22 +232,7 @@ end
|
|
232
232
|
|
233
233
|
#########
|
234
234
|
def normalize_url(url)
|
235
|
-
|
236
|
-
origin_url = `git config --get remote.origin.url`.chomp
|
237
|
-
|
238
|
-
unless origin_url =~ /^\w+:\/\//
|
239
|
-
if origin_url =~ /^([^:\/]+):([^:]+)/
|
240
|
-
origin_url = "ssh://#{$1}/#{$2}"
|
241
|
-
end
|
242
|
-
end
|
243
|
-
|
244
|
-
require 'uri'
|
245
|
-
uri = URI.parse URI.encode origin_url
|
246
|
-
uri.path = File.expand_path(url, uri.path)
|
247
|
-
uri.to_s
|
248
|
-
else
|
249
|
-
url
|
250
|
-
end
|
235
|
+
url
|
251
236
|
end
|
252
237
|
|
253
238
|
def execute(cmd, opts=[], path=Dir.getwd, redirect='2>&1')
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: obazoud-git-external
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel Cestari
|