Skip to content

Allow to set git clone depth #9708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DifferentialOrange opened this issue Nov 3, 2022 · 2 comments
Closed

Allow to set git clone depth #9708

DifferentialOrange opened this issue Nov 3, 2022 · 2 comments

Comments

@DifferentialOrange
Copy link

Details

We use setuptools_scm to compute our package version automatically based on git metadata. Documentation displays the package version.

Expected Result

setuptools_scm successfully computes package version in every case.

Actual Result

setuptools_scm fails to compute expected package version if there are more than 50 commits since last tag.

Since git clone depth is 50 in build pipeline, tag info is not fetched and it displays 0.1.dev50+g26c6db1 version instead of 0.9.1.dev73+g26c6db1. It would be nice to be able to tune git clone settings to fix such behavior.

@humitos
Copy link
Member

humitos commented Nov 3, 2022

Hi @DifferentialOrange! You can use https://docs.readthedocs.io/en/latest/build-customization.html#unshallow-clone to unshallow your repository. Let me know if that doesn't work for you for any reason.

@humitos humitos closed this as completed Nov 3, 2022
DifferentialOrange added a commit to tarantool/tarantool-python that referenced this issue Nov 3, 2022
Use unshallow clone [1] to negate the default readthedocs clone with
depth 50.

1. readthedocs/readthedocs.org#9708 (comment)

Closes #255
DifferentialOrange added a commit to tarantool/tarantool-python that referenced this issue Nov 3, 2022
Use unshallow clone [1] to negate the default readthedocs clone with
depth 50.

1. readthedocs/readthedocs.org#9708 (comment)

Closes #255
DifferentialOrange added a commit to tarantool/tarantool-python that referenced this issue Nov 3, 2022
Use unshallow clone [1] to negate the default readthedocs clone with
depth 50.

1. readthedocs/readthedocs.org#9708 (comment)

Closes #255
@DifferentialOrange
Copy link
Author

Hi @DifferentialOrange! You can use https://docs.readthedocs.io/en/latest/build-customization.html#unshallow-clone to unshallow your repository. Let me know if that doesn't work for you for any reason.

That helped. Thanks a lot!

DifferentialOrange added a commit to tarantool/tarantool-python that referenced this issue Nov 3, 2022
Use unshallow clone [1] to negate the default readthedocs clone with
depth 50.

1. readthedocs/readthedocs.org#9708 (comment)

Closes #255
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

No branches or pull requests

2 participants