mgit 0.4.8 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c39ff8260a4ca3f44ed7deb761854d7283dd39de
4
- data.tar.gz: 1b12d0a22388d584656e753a2497aa29a89becff
3
+ metadata.gz: 4a86224f83a5be35d45e32552913b3c5c0d7c056
4
+ data.tar.gz: d1f19a4b319257fe1b09991b21526bc0dbe7adae
5
5
  SHA512:
6
- metadata.gz: 14e3b22acd0ab8f95455dbba57fec124f0d00f9eabcb53c3e3bc48636e2683ecd381911a8e3dda651519e975c8a6f6e916b9a97bc71adcdcfe3c8c853c714478
7
- data.tar.gz: ed9d499d171fbb9163a04ed0eebb515318b31a3769d2de3f1dac66da3da7b9e168dad98e7b22f792dcd8c19c1eced55f766f33ad5f811a5ba6d94ee603102dc3
6
+ metadata.gz: cddce5e387e20d3edf496b44fff744f77e79b81a20927503937de8814696c439620486885c3c0489ad122b09d02292d7d8cbd8f79636ee0448db569b8d3e8972
7
+ data.tar.gz: 090a1839174d0566cf342d0cfc23a6d14963ae9af1769eea8f2ec0ae5e0682038c776eef27849c8db4aa751729bd08f6d47a76f66434ea4036fdec061d8b70e4
@@ -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."
@@ -16,6 +16,11 @@ module MGit
16
16
  colors: {
17
17
  default: true,
18
18
  description: 'set to false to disable all colored output'
19
+ },
20
+
21
+ prune: {
22
+ default: true,
23
+ description: 'set to false to disable --prune for fetch command'
19
24
  }
20
25
  }
21
26
 
data/lib/mgit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module MGit
2
- VERSION = '0.4.8'
2
+ VERSION = '0.4.9'
3
3
  end
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.8
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-10-25 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize