Skip to content

Commit

Permalink
always fetch before checking for new commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Bamberger committed Oct 11, 2013
1 parent a6cb5db commit 5ee66c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git-review/local.rb
Expand Up @@ -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
Expand Down

0 comments on commit 5ee66c5

Please sign in to comment.