     # Move a file to a new location
     # -------
     move: (branch, path, newPath) ->
-      updateTree(branch)
+      @_updateTree(branch)
       .then (latestCommit) =>
         @getTree("#{latestCommit}?recursive=true")
         .then (tree) =>


    # Uses the cache if branch has not been changed
    # -------
    updateTree = (branch) ->
      # Since this method always returns a promise, wrap the result in a deferred
      return (new jQuery.Deferred()).resolve(@currentTree.sha) if branch is @currentTree.branch and @currentTree.sha


    # Remove a file from the tree
    # -------
    remove: (branch, path) ->
      @_updateTree(branch)
      .then (latestCommit) =>
        @getTree("#{latestCommit}?recursive=true")
        .then (tree) =>
