Skip to content

Releases: bitrise-steplib/steps-git-clone

6.2.0

14 Jul 18:25
e50e62a

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 6.1.2...6.1.3

6.1.2

20 Sep 10:46
3b17afb

Choose a tag to compare

[#170] Mark Git LFS as a step dependency to avoid a missing dependency in the future

6.1.1

11 Aug 08:53
6ef1a17

Choose a tag to compare

Fixed a bug when a failure during fetch was not handled properly and mistakenly presented the step's run as success

6.1.0

15 Jul 08:57
d10e425

Choose a tag to compare

Will correctly export commit author, hash and other outputs for PR builds.
Previously this was not always the case, and the commit information was output for a temporary merge commit (author: J. Doe).
From now the commit by the PR author from the source (head) branch will be used.

The outputs are not exported for PR builds if using hosted Bitbucket with the Manual merge input set to no. (In this case the the commit by the PR author is not available).

Outputs exported for PR builds:
GIT_CLONE_COMMIT_AUTHOR_NAME, GIT_CLONE_COMMIT_AUTHOR_EMAIL, GIT_CLONE_COMMIT_HASH, GIT_CLONE_COMMIT_MESSAGE_SUBJECT, GIT_CLONE_COMMIT_MESSAGE_BODY
Outputs not exported for PR builds:
GIT_CLONE_COMMIT_COMMITER_NAME, GIT_CLONE_COMMIT_COMMITER_EMAIL, GIT_CLONE_COMMIT_COUNT

6.0.0

18 May 09:34
d9193b8

Choose a tag to compare

Version 6.0.0 replaces the limit_submodule_update_depth input by the submodule_update_depth input, which can be used to specify the depth of the submodule update command.

The submodule_update_depth is only applied if it is greater than 0 and update_submodules is set to "yes".

Related pull requests

  • submodule update depth made configurable (#161)

5.1.2

06 May 06:43
0cfb786

Choose a tag to compare

Fix sparse checkout for git 2.25.1, by calling git "config" "extensions.partialClone" "origin" "--local".

5.1.1

09 Apr 13:53
02ca068

Choose a tag to compare

Introduced --jobs flag on submodule update and fetch commands

5.1.0

07 Apr 13:00
6dae3c8

Choose a tag to compare

Introducing sparse_directories input to limit which directories should be cloned by the Step.

Input can be used either of the following way:

 - sparse_directories: client/android
OR
- sparse_directories: |-
               client/android
               client/common

5.0.1

29 Mar 09:50
fe421b4

Choose a tag to compare

Update fetch_tags input description.

5.0.0

24 Mar 13:59
5a5f284

Choose a tag to compare

This version Introduces a new input (fetch_tags), which can be used to control whether git fetch calls should fetch all tags or no tags at all.
Set fetch_tags to "yes" if you plan to generate a changelog or want to use the repository's tags in further Steps.
If you want to speed up the step run set fetch_tags to "no", this is the default value.

Tag checkout strategy's fetch changed from git "fetch" "--tags" to git "fetch" "origin" "refs/tags/<TAG>:refs/tags/<TAG>"so that in case of tag checkout the step only fetches the desired tag.

Migration guide

If your workflow relied on git tags, set fetch_tags to "yes".