git_commands 3.2.0 → 3.2.1

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: 01a6f8395baa1fb4d58f303328df32879e9f2fde
4
- data.tar.gz: b2868ae612d6128188cd940e8e25bf36ad301ce1
3
+ metadata.gz: 6830212ac9292f6ab9a440be58462c0700e0aca5
4
+ data.tar.gz: 6dc1beacbc1d9d38805401e989f32810ac2b329b
5
5
  SHA512:
6
- metadata.gz: c4f5c35d40aa43b150264c28dd056e1252ac18ebeece5db18c315173a8d3ebcf34933dbad57d9e10db517616ce806981dc1c2ce076dbc06927a1ad723aaf7253
7
- data.tar.gz: cac97ac9121721c40287714f5794a1b1fcc7bed5516ed839c15c27627d87bbbf584fb64b92eecf6d3f45f74d062180867e7a769c91e898019f16972bf75eb5fa
6
+ metadata.gz: 27b6cd41ea7fdb45082b63e2c4d9eb5f6f5cd4f300897eeb64e4347d45f73c0f787dbfaedf010c3c9645b4b6e0f333947f3fea3e1ce344c2042c7bb17eaf9114
7
+ data.tar.gz: b958bd9a4abd7833b8a42b6220b5ad238223a2aa363b835e92d575eb67c425f45c11548da74c31c669cbea11186111e0c12b9440312b91cff3adc22c62b6009b
@@ -44,7 +44,7 @@ module GitCommands
44
44
  warning("Rebasing branch: #{branch}")
45
45
  `git checkout #{branch}`
46
46
  `git pull origin #{branch}`
47
- next unless rebase_with_master
47
+ next unless rebase_with_master(branch)
48
48
  `git push -f origin #{branch}`
49
49
  `git checkout #{Branch::MASTER}`
50
50
  `git branch -D #{branch}`
@@ -63,7 +63,7 @@ module GitCommands
63
63
  @branches.each do |branch|
64
64
  warning("Merging branch: #{branch}")
65
65
  `git checkout -b #{temp} origin/#{branch} --no-track`
66
- next unless rebase_with_master
66
+ next unless rebase_with_master(branch)
67
67
  `git rebase #{aggregate}`
68
68
  `git checkout #{aggregate}`
69
69
  `git merge #{temp}`
@@ -88,10 +88,12 @@ module GitCommands
88
88
  `git pull`
89
89
  end
90
90
 
91
- private def rebase_with_master
91
+ private def rebase_with_master(branch)
92
92
  `git rebase origin/#{Branch::MASTER}`
93
93
  return true unless @repo.locked?
94
94
  `git rebase --abort`
95
+ `git checkout #{Branch::MASTER}`
96
+ `git branch -D #{branch}`
95
97
  error("Got conflicts, skipping rebase!")
96
98
  end
97
99
 
@@ -1,3 +1,3 @@
1
1
  module GitCommands
2
- VERSION = "3.2.0"
2
+ VERSION = "3.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - costajob