# File lib/rhc/git_helpers.rb, line 56
    def git_clone_application(app)
      repo_dir = options.repo || app.name

      debug "Pulling new repo down"
      dir = git_clone_repo(app.git_url, repo_dir)

      debug "Configuring git repo"
      Dir.chdir(repo_dir) do
        git_config_set "rhc.app-id", app.id
        git_config_set "rhc.app-name", app.name
        git_config_set "rhc.domain-name", app.domain_id

        git_remote_add("upstream", app.initial_git_url) if app.initial_git_url.present?
      end

      git_clone_deploy_hooks(repo_dir)

      dir
    end