From 9d041f7bea8cd86d7eb8f7a927f927c05b960ba9 Mon Sep 17 00:00:00 2001 From: Quinn Shanahan Date: Mon, 19 May 2014 11:42:19 -0400 Subject: [PATCH] allow delete of file on branch The github API requires an option `branch` param to delete a file from a branch. --- github.js | 1 + 1 file changed, 1 insertion(+) diff --git a/github.js b/github.js index bc63ab0d..0518283b 100644 --- a/github.js +++ b/github.js @@ -563,6 +563,7 @@ }; delPath += "?message=" + encodeURIComponent(params.message); delPath += "&sha=" + encodeURIComponent(params.sha); + delPath += '&branch=' + encodeURIComponent(branch); _request("DELETE", delPath, null, cb); }) }