mgit 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mgit/commands/clone.rb +7 -5
- data/lib/mgit/version.rb +1 -1
- 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: c39ff8260a4ca3f44ed7deb761854d7283dd39de
|
4
|
+
data.tar.gz: 1b12d0a22388d584656e753a2497aa29a89becff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14e3b22acd0ab8f95455dbba57fec124f0d00f9eabcb53c3e3bc48636e2683ecd381911a8e3dda651519e975c8a6f6e916b9a97bc71adcdcfe3c8c853c714478
|
7
|
+
data.tar.gz: ed9d499d171fbb9163a04ed0eebb515318b31a3769d2de3f1dac66da3da7b9e168dad98e7b22f792dcd8c19c1eced55f766f33ad5f811a5ba6d94ee603102dc3
|
data/lib/mgit/commands/clone.rb
CHANGED
@@ -2,14 +2,16 @@ module MGit
|
|
2
2
|
class CloneCommand < Command
|
3
3
|
def execute(args)
|
4
4
|
log = System.git("clone #{args.join(' ')}", raise: true)
|
5
|
-
|
5
|
+
|
6
6
|
m = [log.stdout, log.stderr].find do |l|
|
7
|
-
|
7
|
+
f = l.split("\n").first
|
8
|
+
f && f.start_with?('Cloning into')
|
8
9
|
end
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
11
|
+
d = /Cloning into '(.*)'/.match(m)
|
12
|
+
fail 'Failed to determine repository directory.' unless d
|
13
|
+
|
14
|
+
Command.execute('add', [d[1]])
|
13
15
|
end
|
14
16
|
|
15
17
|
def arity
|
data/lib/mgit/version.rb
CHANGED