git-review 0.7.2 → 0.7.3

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.
Files changed (2) hide show
  1. data/lib/git-review.rb +3 -1
  2. metadata +4 -4
@@ -214,9 +214,11 @@ class GitReview
214
214
  git_call "reset --hard origin/#{target_branch}"
215
215
  git_call "checkout #{local_branch}"
216
216
  end
217
+ else
218
+ local_branch = source_branch
217
219
  end
218
220
  # Push latest commits to the remote branch (and by that, create it if necessary).
219
- git_call "push origin"
221
+ git_call "push --set-upstream origin #{local_branch}"
220
222
  end
221
223
 
222
224
  # System call to 'git'.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-review
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 2
10
- version: 0.7.2
9
+ - 3
10
+ version: 0.7.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dominik Bamberger, Cristian Messel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-11-10 00:00:00 +01:00
18
+ date: 2011-11-15 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency