Skip to content

Commit e90b57c

Browse files
codexByron
authored andcommitted
clarify reference symlink validation error
1 parent 67f7ffa commit e90b57c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git/refs/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _get_validated_path(base: PathLike, path: PathLike) -> str:
120120
continue
121121
cur_path = os.path.join(cur_path, part)
122122
if os.path.islink(cur_path):
123-
raise ValueError("Reference path %r escapes the repository" % path)
123+
raise ValueError("Reference path %r includes a symlink component" % path)
124124
abs_path = os.path.realpath(os.path.join(base_path, path))
125125
try:
126126
common_path = os.path.commonpath([base_path, abs_path])

0 commit comments

Comments
 (0)