       @on("sync", -> @set("id", "fakeIDtoenablePUT"))
       @on("change", @parseFilePath)
       @parseFilePath()
-  
+
     parseFilePath: (model, options) ->
       if @get("file_path")
         @set("name", _.last(@get("file_path").split("/")))
-  
+
     sync: (method, model, options) ->
       options = options || {}
       baseURL = "#{root.url}/projects/#{@project.escaped_path()}/repository"


  # Tree
  # --------------------------------------------------------
  
  @Tree = @Collection.extend(
    
    backboneClass: "Tree"
    model: root.Blob
    url: -> "#{root.url}/projects/#{@project.escaped_path()}/repository/tree"
    
    initialize: (models, options) ->
      options = options || {}
      if !options.project then throw "You have to initialize GitLab.Tree with a GitLab.Project model"

      @on("change", @parsePath)
      @parse_path()
    tree: (path, branch) ->
      return new root.Tree([],
        project:@
        path: path
        branch: branch
