diff --git a/github.js b/github.js index 6f8dc215..3c6901d5 100644 --- a/github.js +++ b/github.js @@ -655,9 +655,9 @@ updateTree(branch, function(err, latestCommit) { that.getTree(latestCommit+"?recursive=true", function(err, tree) { // Update Tree - tree.forEach(function(ref) { + tree = tree.filter(function(ref) { if (ref.path === path) ref.path = newPath; - if (ref.type === "tree") delete ref.sha; + return ref.type !== "tree"; }); that.postTree(tree, function(err, rootTree) { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy