Skip to content

Commit 5ee66c5

Browse files
author
Dominik Bamberger
committed
always fetch before checking for new commits
1 parent a6cb5db commit 5ee66c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git-review/local.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ def new_commits?(upstream = false)
228228
unless remote
229229
remote = 'upstream'
230230
git_call "remote add #{remote} #{remote_url}"
231-
git_call "fetch #{remote}"
232231
end
232+
git_call "fetch #{remote}"
233233
target = upstream ? "#{remote}/#{target_branch}" : target_branch
234234
not git_call("cherry #{target}").empty?
235235
end

0 commit comments

Comments
 (0)