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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f34a0f58527681ae3555ace98e7f7ab91adacdcb
4
- data.tar.gz: 57e4d004541d62602ab2ed2aa1591cb4babe032e
3
+ metadata.gz: c39ff8260a4ca3f44ed7deb761854d7283dd39de
4
+ data.tar.gz: 1b12d0a22388d584656e753a2497aa29a89becff
5
5
  SHA512:
6
- metadata.gz: 0484335cd8c44046c7f054196c72c1a5194dee622d6a63541b1c04914fd7b8c3ab42418a84ce12a7ca73d953754ed8a44d9d583c7a848d2d623efd6f6c245e27
7
- data.tar.gz: 4ed6fe14d944ea5a30631945a5220e7822b1b3b615e11b092d112d934dfaba27befaddacc9441d54abcb3a76cb7fce2ebca549062239e5572f8a3d307fec255a
6
+ metadata.gz: 14e3b22acd0ab8f95455dbba57fec124f0d00f9eabcb53c3e3bc48636e2683ecd381911a8e3dda651519e975c8a6f6e916b9a97bc71adcdcfe3c8c853c714478
7
+ data.tar.gz: ed9d499d171fbb9163a04ed0eebb515318b31a3769d2de3f1dac66da3da7b9e168dad98e7b22f792dcd8c19c1eced55f766f33ad5f811a5ba6d94ee603102dc3
@@ -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
- /Cloning into '(.*)'/.match(l.split("\n").first)
7
+ f = l.split("\n").first
8
+ f && f.start_with?('Cloning into')
8
9
  end
9
10
 
10
- fail 'Failed to determine repository directory.' unless m
11
-
12
- Command.execute('add', [m[1]])
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
@@ -1,3 +1,3 @@
1
1
  module MGit
2
- VERSION = '0.4.7'
2
+ VERSION = '0.4.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mgit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - FlavourSys Technology GmbH