Skip to content

Conversation

cgundogan
Copy link
Contributor

adopted from RIOT-OS/RIOT/pull/6289

git clone --reference "${GIT_CACHE_DIR}" "${GIT_CACHE_DIR}" "${TARGET_PATH}" --branch commit$SHA1
else
git clone --reference "${GIT_CACHE_DIR}" "${REMOTE}" "${TARGET_PATH}"
git clone "${REMOTE}" "${TARGET_PATH}"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the semantic significantly. Before, it would use the .gitcache as reference also if the exact commit would not be in the cache. Now it ignores the cache in that case.

I think there should be another test if the cache dir exists and only if it doesn't do a checkout without reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants