obazoud-git-external 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -68,7 +68,7 @@ git external rm <path>
68
68
  git clone git://github.com/obazoud/git-external.git
69
69
  cd git-external
70
70
  git checkout develop
71
- gem build obazoud-git-external.gemspec && gem install --local obazoud-git-external-0.8.0.gem
71
+ gem build obazoud-git-external.gemspec && gem install --local obazoud-git-external-0.8.1.gem
72
72
  </pre>
73
73
 
74
74
  And voilà!
data/bin/git-external CHANGED
@@ -151,7 +151,11 @@ def update_external(url, path, branch='origin/master', revision=nil)
151
151
  if uncommitted_changes?(path)
152
152
  puts "#{path} - uncommitted changes detected, can not update repository"
153
153
  elsif revision
154
- puts "#{path} - updating to revision:#{revision}"
154
+ puts "#{path} - updating to revision: #{revision}"
155
+
156
+ remoteName, = branch.split('/')
157
+
158
+ execute('git fetch', [remoteName], path, '')
155
159
  execute('git checkout', [revision], path, '')
156
160
  else
157
161
  puts "#{path} - updating branch #{branch}"
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'obazoud-git-external'
4
- s.version = '0.8.0'
4
+ s.version = '0.8.1'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Daniel Cestari', 'Olivier Bazoud', 'Alastair Harrison']
7
7
  s.email = ["olivier.bazoud@gmail.com"]
metadata CHANGED
@@ -1,35 +1,27 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: obazoud-git-external
3
- version: !ruby/object:Gem::Version
4
- hash: 63
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 8
9
- - 0
10
- version: 0.8.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Daniel Cestari
14
9
  - Olivier Bazoud
15
10
  - Alastair Harrison
16
11
  autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
-
20
- date: 2012-11-23 00:00:00 Z
14
+ date: 2012-11-27 00:00:00.000000000 Z
21
15
  dependencies: []
22
-
23
- description: Extension for git which adds a command providing similar functionality to git submodules but without attaching each module to a single version
24
- email:
16
+ description: Extension for git which adds a command providing similar functionality
17
+ to git submodules but without attaching each module to a single version
18
+ email:
25
19
  - olivier.bazoud@gmail.com
26
- executables:
20
+ executables:
27
21
  - git-external
28
22
  extensions: []
29
-
30
23
  extra_rdoc_files: []
31
-
32
- files:
24
+ files:
33
25
  - .gitignore
34
26
  - LICENSE.txt
35
27
  - README.markdown
@@ -38,36 +30,26 @@ files:
38
30
  - unittest.sh
39
31
  homepage: http://github.com/obazoud/git-external
40
32
  licenses: []
41
-
42
33
  post_install_message:
43
34
  rdoc_options: []
44
-
45
- require_paths:
35
+ require_paths:
46
36
  - lib
47
- required_ruby_version: !ruby/object:Gem::Requirement
37
+ required_ruby_version: !ruby/object:Gem::Requirement
48
38
  none: false
49
- requirements:
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- hash: 3
53
- segments:
54
- - 0
55
- version: "0"
56
- required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
44
  none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
- version: "0"
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
65
49
  requirements: []
66
-
67
50
  rubyforge_project:
68
51
  rubygems_version: 1.8.24
69
52
  signing_key:
70
53
  specification_version: 3
71
54
  summary: Git version of an svn:external, an alternative to Git Submodule
72
55
  test_files: []
73
-