Skip to content

Commit 04454ac

Browse files
committed
incorrect variable name in deprecation
1 parent d20c66d commit 04454ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/deprecated.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ end
11391139
@deprecate object(repo::GitRepo, te::GitTreeEntry) GitObject(repo, te) false
11401140
@deprecate commit(ann::GitAnnotated) GitHash(ann) false
11411141
@deprecate lookup(repo::GitRepo, oid::GitHash) GitBlob(repo, oid) false
1142-
function Base.cat{T<:GitObject}(repo::GitRepo, ::Type{T}, object::Union{AbstractString,AbstractGitHash})
1142+
function Base.cat{T<:GitObject}(repo::GitRepo, ::Type{T}, spec::Union{AbstractString,AbstractGitHash})
11431143
Base.depwarn("cat(repo::GitRepo, T, spec) is deprecated, use content(T(repo, spec))", :cat)
11441144
try
11451145
return content(GitBlob(repo, spec))
@@ -1148,7 +1148,7 @@ end
11481148
rethrow(e)
11491149
end
11501150
end
1151-
Base.cat(repo::GitRepo, object::Union{AbstractString,AbstractGitHash}) = cat(repo, GitBlob, object)
1151+
Base.cat(repo::GitRepo, spec::Union{AbstractString,AbstractGitHash}) = cat(repo, GitBlob, spec)
11521152
end
11531153

11541154
# when this deprecation is deleted, remove all calls to it, and all

0 commit comments

Comments
 (0)