mgit 0.4.8 → 0.4.9
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/fetch.rb +5 -1
- data/lib/mgit/configuration.rb +5 -0
- data/lib/mgit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a86224f83a5be35d45e32552913b3c5c0d7c056
|
4
|
+
data.tar.gz: d1f19a4b319257fe1b09991b21526bc0dbe7adae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cddce5e387e20d3edf496b44fff744f77e79b81a20927503937de8814696c439620486885c3c0489ad122b09d02292d7d8cbd8f79636ee0448db569b8d3e8972
|
7
|
+
data.tar.gz: 090a1839174d0566cf342d0cfc23a6d14963ae9af1769eea8f2ec0ae5e0682038c776eef27849c8db4aa751729bd08f6d47a76f66434ea4036fdec061d8b70e4
|
data/lib/mgit/commands/fetch.rb
CHANGED
@@ -28,6 +28,10 @@ module MGit
|
|
28
28
|
|
29
29
|
private
|
30
30
|
|
31
|
+
def prune_switch
|
32
|
+
Configuration.prune ? '--prune' : ''
|
33
|
+
end
|
34
|
+
|
31
35
|
def fetch(repo)
|
32
36
|
sc = System.git('remote', chdir: repo.path)
|
33
37
|
|
@@ -37,7 +41,7 @@ module MGit
|
|
37
41
|
end
|
38
42
|
|
39
43
|
sc.stdout.strip.split.each do |remote|
|
40
|
-
if System.git("fetch #{remote}", chdir: repo.path).success?
|
44
|
+
if System.git("fetch #{prune_switch} #{remote}", chdir: repo.path).success?
|
41
45
|
pinfo "Fetched #{remote} in repository #{repo.name}."
|
42
46
|
else
|
43
47
|
perror "Failed to fetch #{remote} in repository #{repo.name}! Abort."
|
data/lib/mgit/configuration.rb
CHANGED
data/lib/mgit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mgit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FlavourSys Technology GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|