Skip to content
Snippets Groups Projects
Commit 56b1dd81 authored by Martine Lenders's avatar Martine Lenders
Browse files

Merge pull request #5492 from miri64/dist/fix/git-cache-tags

git-cache: also fetch tags
parents fbeb6dc1 1124409d
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ clone() {
if _check_commit $2 2>&1; then
git init "${TARGET_PATH}"
git_cache tag commit$SHA1 $SHA1 || true # ignore possibly already existing tag
git -C "${TARGET_PATH}" fetch --depth=1 "${GIT_CACHE_DIR}" refs/tags/commit$SHA1
git -C "${TARGET_PATH}" fetch --tags --depth=1 "${GIT_CACHE_DIR}" refs/tags/commit$SHA1
git -C "${TARGET_PATH}" checkout FETCH_HEAD
else
git clone "${REMOTE}" "${TARGET_PATH}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment