 ###
 
 build_tree = ->
-  file_map(@root, { file_ignores: @config.ignore })
+  i = @config.ignore
+  file_map(@root, { file_ignores: i, directory_ignores: i })
     .then (tree) => format_tree.call(@, path: '', children: tree)
 
 ###*

  nodefn.call @gh.gitdata.createBlob.bind(@gh),
    user: @user
    repo: @repo
    content: content
    encoding: 'utf8'
  .then (res) -> res.sha

###*

module.exports = (root, config) ->
  d = W.defer()

  config.ignore = _.compact([
    'ship*.conf',
    '.gitignore',
    '.git{/**,}',
    '**/node_modules{/**,}'].concat(config.ignore))
  repo_user = config.repo.split('/')[0]
  repo_name = config.repo.split('/')[1]

