diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a16fcf..fb321ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file. - Description: Berkeley Humanoid +### Fixed + +- cache: Only call git checkout when it is not head of the working copy + ## [1.13.0] - 2024-10-30 ### Added diff --git a/robot_descriptions/_cache.py b/robot_descriptions/_cache.py index 30a0cb4..310c64d 100644 --- a/robot_descriptions/_cache.py +++ b/robot_descriptions/_cache.py @@ -85,7 +85,7 @@ def clone_to_directory( progress=progress_bar.update, ) - if commit is not None: + if commit is not None and commit != clone.head.object.hexsha: try: clone.git.checkout(commit) except GitCommandError: