 
   getAvailableUpdates: (packages, callback) ->
     getLatestVersionOrSha = (pack, done) =>
-      if pack.apmInstallSource?.type is 'git'
+      if @folderIsRepo(pack) and pack.apmInstallSource?.type is 'git'
         @getLatestSha pack, (err, sha) ->
           done(err, {pack, sha})
       else

        callback()
    else
      @loadInstalledAtomMetadata(callback)

  getLatestVersion: (pack, callback) ->
    requestSettings =

      args = ['fetch', 'origin', 'master']
      git.addGitToEnv(process.env)
      @spawn command, args, {cwd: repoPath}, (code, stderr='', stdout='') ->
        return callback(new Error('Exit code: ' + code + ' - ' + stderr)) unless code is 0
        repo = Git.open(repoPath)
        sha = repo.getReferenceTarget(repo.getUpstreamBranch('refs/heads/master'))
        if sha isnt pack.apmInstallSource.sha
