Skip to content

Commit 985878a

Browse files
Only call git checkout when it is not head of the working copy
1 parent 380aa5a commit 985878a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ All notable changes to this project will be documented in this file.
88

99
- Description: Berkeley Humanoid
1010

11+
### Fixed
12+
13+
- cache: Only call git checkout when it is not head of the working copy
14+
1115
## [1.13.0] - 2024-10-30
1216

1317
### Added

robot_descriptions/_cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def clone_to_directory(
8585
progress=progress_bar.update,
8686
)
8787

88-
if commit is not None:
88+
if commit is not None and commit != clone.head.object.hexsha:
8989
try:
9090
clone.git.checkout(commit)
9191
except GitCommandError:

0 commit comments

Comments
 (0)