'git describe --tags $(git rev-list --tags --max-count=1)' may return beta version #11038

Closed
opened 2025-12-29 21:39:30 +01:00 by adam · 1 comment
Owner

Originally created by @dreng on GitHub (Apr 16, 2025).

Originally assigned to: @jeremystretch on GitHub.

Change Type

Correction

Area

Installation/upgrade

Proposed Changes

In 'https://github.com/netbox-community/netbox/blob/main/docs/installation/upgrading.md#option-b-check-out-a-git-release', the user is advised to use git describe --tags $(git rev-list --tags --max-count=1)

Currently, this returns 'v4.3.0-beta1', which is probably not what the user wants. This is particularly bad if a script/playbook is used for updates.

Originally created by @dreng on GitHub (Apr 16, 2025). Originally assigned to: @jeremystretch on GitHub. ### Change Type Correction ### Area Installation/upgrade ### Proposed Changes In 'https://github.com/netbox-community/netbox/blob/main/docs/installation/upgrading.md#option-b-check-out-a-git-release', the user is advised to use `git describe --tags $(git rev-list --tags --max-count=1)` Currently, this returns 'v4.3.0-beta1', which is probably not what the user wants. This is particularly bad if a script/playbook is used for updates.
adam added the status: acceptedtype: documentation labels 2025-12-29 21:39:30 +01:00
adam closed this issue 2025-12-29 21:39:30 +01:00
Author
Owner

@jeremystretch commented on GitHub (Apr 16, 2025):

This really feels like it should be easier...

git ls-remote --tags https://github.com/netbox-community/netbox.git \
  | grep -o 'refs/tags/v[0-9]*\.[0-9]*\.[0-9]*$' \
  | tail -n 1 \
  | sed 's|refs/tags/||'
@jeremystretch commented on GitHub (Apr 16, 2025): This really feels like it should be easier... ``` git ls-remote --tags https://github.com/netbox-community/netbox.git \ | grep -o 'refs/tags/v[0-9]*\.[0-9]*\.[0-9]*$' \ | tail -n 1 \ | sed 's|refs/tags/||' ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11038