From 5ee66c554cc77b1e31a95842892e4cedf33927e6 Mon Sep 17 00:00:00 2001 From: Dominik Bamberger Date: Fri, 11 Oct 2013 16:47:29 +0200 Subject: [PATCH] always fetch before checking for new commits --- lib/git-review/local.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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