diff --git a/pull/hosting_git_pull.module b/pull/hosting_git_pull.module
index 636b230..16ef428 100644
--- a/pull/hosting_git_pull.module
+++ b/pull/hosting_git_pull.module
@@ -38,6 +38,7 @@ function hosting_git_pull_hosting_tasks() {
   $tasks['site']['git-pull'] = array(
     'title' => t('Git pull'),
     'description' => t('Runs a git pull on the current site.'),
+    'access callback' => 'hosting_git_pull_access_platform_pull',
     'dialog' => TRUE,
   );
 
@@ -55,6 +56,10 @@ function hosting_git_pull_hosting_tasks() {
  * Access function for the pull task on platforms.
  */
 function hosting_git_pull_access_platform_pull($node) {
+  // Only consider doing this if we have a git repo.
+  if (empty($node->git['repo_url'])) {
+    return FALSE;
+  }
   if (user_access('create platform git-pull task') && isset($node->git['git_allow_pull_task'])) {
     return $node->git['git_allow_pull_task'];
   }
