     branch = Encoder.XSSEncode branch
     repo = "#{repo}/#{branch}"  if branch
 
-  return repo
+  return { repo, commitId: sha, branch }
 
 
 module.exports = class HomeStacksImport extends kd.CustomHTMLView


  handleQuery: (query = {}) -> @ready =>

    repo = getRepoFromQuery query

    @message.hide()
    @actionButton.hide()

showError = require 'app/util/showError'
OutputView = require 'stacks/views/stacks/outputview'

parseQuery = (query) ->

  { repo, branch, sha } = query

  repo = Encoder.XSSEncode repo

