       develop.cloneRepository name, targetDir, {}, callback
     else if packageInfo.default is 'shortcut'
       url = packageInfo.https().replace(/^git\+https:/, "https:")
-      develop.cloneRepository url, targetDir, {}, (error) =>
+      develop.cloneRepository url, targetDir, {}, (error) ->
         if error
           # more error checking to make sure failure is because of protocol
           url = packageInfo.sshurl()

          return callback(error) if error
          pack =
            name: gitPackageInfo.project
            # TODO: install modules
      else if name is '.'
        @installDependencies(options, callback)
      else # is registered package

  getHostedGitInfo: (name) ->
    hostedGitInfo.fromUrl(name)

  installGitPackage: (packageInfo, targetDir, callback) ->
    Develop = require './develop'
    develop = new Develop()

