diff --git a/lib/shelly/cli/deploy.rb b/lib/shelly/cli/deploy.rb
index <HASH>..<HASH> 100644
--- a/lib/shelly/cli/deploy.rb
+++ b/lib/shelly/cli/deploy.rb
@@ -60,6 +60,7 @@ module Shelly
       desc "pending", "Show commits which haven't been deployed yet"
       def pending
         app = multiple_clouds(options[:cloud], "deploy pending")
+        app.git_fetch_remote
         if app.deployed?
           commits = app.pending_commits
           if commits.present?
diff --git a/spec/shelly/cli/deploy_spec.rb b/spec/shelly/cli/deploy_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/shelly/cli/deploy_spec.rb
+++ b/spec/shelly/cli/deploy_spec.rb
@@ -115,6 +115,12 @@ describe Shelly::CLI::Deploy do
       hooks(@deploys, :pending).should include(:inside_git_repository?)
     end
 
+    it "should fetch git references from shelly" do
+      @app.should_receive(:git_fetch_remote)
+      @app.stub(:pending_commits => "commit")
+      invoke(@deploys, :pending)
+    end
+
     context "when application has been deployed" do
       context "and has pending commits to deploy" do
         it "should display them" do
Fetch references before showing not deployed commits [#<I>]