We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e98f57b commit 832b6eeCopy full SHA for 832b6ee
git/refs/symbolic.py
@@ -200,7 +200,7 @@ def _check_ref_name_valid(ref_path: PathLike) -> None:
200
raise ValueError(f"Invalid reference '{ref_path}': references cannot end with a forward slash (/)")
201
elif previous == "@" and one_before_previous is None:
202
raise ValueError(f"Invalid reference '{ref_path}': references cannot be '@'")
203
- elif any([component.endswith(".lock") for component in str(ref_path).split("/")]):
+ elif any(component.endswith(".lock") for component in str(ref_path).split("/")):
204
raise ValueError(
205
f"Invalid reference '{ref_path}': references cannot have slash-separated components that end with"
206
f" '.lock'"
0 commit comments