mirror of
https://github.com/thegeeklab/git-sv.git
synced 2026-04-25 02:05:51 +03:00
[GH-ISSUE #196] Git-sv 2.0.0 not being able to read next-version from shallow git clone #13
Labels
No labels
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/git-sv#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mniskane on GitHub (May 8, 2025).
Original GitHub issue: https://github.com/thegeeklab/git-sv/issues/196
After updating to git-sv 2.0.0 version, getting next-version from shallow git clone stopped working:
I am able to get next-version with the older git-sv 1.0.14 version from the same git clone:
Shallow clones help CI to run faster when handling big repositories. Gitlab jobs use shallow (depth 20) as default when running CI jobs. ( https://docs.gitlab.com/user/project/repository/monorepos/#shallow-cloning )
ps. When using 2.0.0, command "git fetch --unshallow" helps to get "git-sv next-version" working.
Edit: My environment is Linux Ubuntu 25.04 (x86_64) and binaries git-sv1 and git-sv2 were copied from this project's release page.
@xoxys commented on GitHub (May 8, 2025):
Thanks for the report. Ill tag a new release soon, please let me know if the issue persists.
@mniskane commented on GitHub (May 9, 2025):
Thank you for the fix. I built main branch version and tested it with some shallow clones. Getting next tag version works now! Wonderful.. thanks <3