Skip to content

Commit 0329c2d

Browse files
committed
use subdir to be consistent with existing package key
1 parent 9415286 commit 0329c2d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/register.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function update_versions_file(pkg::Project,
343343
version_info["git-tag-name"] = tag_name
344344
end
345345
if subdir != ""
346-
version_info["git-tree-path"] = subdir
346+
version_info["subdir"] = subdir
347347
end
348348
versions_data[string(pkg.version)] = version_info
349349

@@ -364,7 +364,7 @@ function update_versions_file(pkg::Project,
364364
return 3
365365
elseif x == "git-tag-name"
366366
return 4
367-
elseif x == "git-tree-path"
367+
elseif x == "subdir"
368368
return 5
369369
elseif x == "yanked"
370370
return 100

test/regedit.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,10 @@ end
304304
@test data isa Dict
305305
@test collect(keys(data)) == ["1.0.0"]
306306
@test data["1.0.0"] isa Dict
307-
@test sort!(collect(keys(data["1.0.0"]))) == ["git-commit-sha1", "git-tree-path", "git-tree-sha1"]
307+
@test sort!(collect(keys(data["1.0.0"]))) == ["git-commit-sha1", "git-tree-sha1", "subdir"]
308308
@test data["1.0.0"]["git-tree-sha1"] == tree_hash
309309
@test data["1.0.0"]["git-commit-sha1"] == commit_hash
310-
@test data["1.0.0"]["git-tree-path"] == subdir
310+
@test data["1.0.0"]["subdir"] == subdir
311311

312312
check_versions!(pkg, data, status)
313313
# This version was just registered, should be a complaint now.

0 commit comments

Comments
 (0)