We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e92cca commit 560a003Copy full SHA for 560a003
base/pkg/git.jl
@@ -111,14 +111,14 @@ const GITHUB_REGEX =
111
function set_remote_url(url::AbstractString; remote::AbstractString="origin", dir="")
112
run(`config remote.$remote.url $url`, dir=dir)
113
m = match(GITHUB_REGEX,url)
114
- m == nothing && return
+ m === nothing && return
115
push = "[email protected]:$(m.captures[1]).git"
116
push != url && run(`config remote.$remote.pushurl $push`, dir=dir)
117
end
118
119
function normalize_url(url::AbstractString)
120
121
- m == nothing ? url : "git://github.com/$(m.captures[1]).git"
+ m === nothing ? url : "git://github.com/$(m.captures[1]).git"
122
123
124
end # module
0 commit comments