diff --git a/lib/git-review/local.rb b/lib/git-review/local.rb index 59ef819..78f5120 100644 --- a/lib/git-review/local.rb +++ b/lib/git-review/local.rb @@ -228,8 +228,8 @@ def new_commits?(upstream = false) unless remote remote = 'upstream' git_call "remote add #{remote} #{remote_url}" - git_call "fetch #{remote}" end + git_call "fetch #{remote}" target = upstream ? "#{remote}/#{target_branch}" : target_branch not git_call("cherry #{target}").empty? end