From 3ea135bec5c71d4782cac695bb8bb5e3e9a28357 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 2 May 2015 12:32:01 +0200 Subject: [PATCH] Properly remove the hash part of the url See https://github.com/iojs/io.js/issues/1588 --- normalize-git-url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/normalize-git-url.js b/normalize-git-url.js index 7662037..869f3e1 100644 --- a/normalize-git-url.js +++ b/normalize-git-url.js @@ -17,7 +17,7 @@ module.exports = function normalize (u) { // figure out what we should check out. var checkout = parsed.hash && parsed.hash.substr(1) || "master" - parsed.hash = "" + parsed.hash = null u = url.format(parsed) return {