git_pr 0.0.13 → 0.0.14.beta0

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: dd3056f47e476c870db87aa355f87349d10461bf
4
- data.tar.gz: d9085166fbc620ec4f86dd1d45801527a99bdbab
3
+ metadata.gz: e1a52c54177aa30fbf3c66ae58700877bc84c539
4
+ data.tar.gz: 11e1faab37fcddee44be6e33093832daa48a98d7
5
5
  SHA512:
6
- metadata.gz: 816e05510dc5fac3d4f31f31b798f340179ea9361957aea286e22b58ca5403c453b28b28f9677cc9f8f784c0b52142e1296f243e836639fb7959be75b68607aa
7
- data.tar.gz: b019d9574431bf01797b7fb3632c20f67242608d838184eac60f779bdb0273cef7f0914b429b055098dd001d034b801528c88a8ed2b3f215f1d53d5a3c0b6d87
6
+ metadata.gz: 55b6ea86c912b8d15051f2cd32b01cdeb09c3068a40cdf0d0c8d579615581e35886f408f418e22f6e8f171a0968884fe4ed35048e0fe1c22a5078437b2b37916
7
+ data.tar.gz: 4028887f5b4262f19657edc05d4f483922505aad091b3a5b917808449f45472b69008c9b814c47cab9553c4721c17cdaed3e224a2f6f3000200d522eac6e1540
data/lib/git_pr/merge.rb CHANGED
@@ -52,6 +52,13 @@ module GitPr
52
52
  # If the local target branch differs from the remote target branch, they
53
53
  # must be reconciled manually.
54
54
  remote_target_branch = "#{target_remote}/#{target_branch}"
55
+ begin
56
+ git.diff("remotes/#{remote_target_branch}", target_branch).any?
57
+ rescue
58
+ puts "Error cracking diff:"
59
+ puts git.diff("remotes/#{remote_target_branch}", target_branch).to_s
60
+ raise
61
+ end
55
62
  if git.diff("remotes/#{remote_target_branch}", target_branch).any?
56
63
  puts "Local branch '#{target_branch}' differs from remote branch '#{remote_target_branch}'. Please reconcile before continuing.".red
57
64
  exit -1
@@ -1,3 +1,3 @@
1
1
  module GitPr
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14.beta0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_pr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14.beta0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Sharon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-09 00:00:00.000000000 Z
11
+ date: 2015-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -159,9 +159,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - '>='
162
+ - - '>'
163
163
  - !ruby/object:Gem::Version
164
- version: '0'
164
+ version: 1.3.1
165
165
  requirements: []
166
166
  rubyforge_project:
167
167
  rubygems_version: 2.0.14