git-review 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/git-review.rb +3 -1
- metadata +4 -4
data/lib/git-review.rb
CHANGED
@@ -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:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
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-
|
18
|
+
date: 2011-11-15 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|