Skip to content

Commit 3ea135b

Browse files
committed
Properly remove the hash part of the url
See nodejs/node#1588
1 parent e51f437 commit 3ea135b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

normalize-git-url.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function normalize (u) {
1717

1818
// figure out what we should check out.
1919
var checkout = parsed.hash && parsed.hash.substr(1) || "master"
20-
parsed.hash = ""
20+
parsed.hash = null
2121

2222
u = url.format(parsed)
2323
return {

0 commit comments

Comments
 (0)