Upgrade: Fetch the tags prior checkout #10589

Closed
opened 2025-12-29 21:33:27 +01:00 by adam · 3 comments
Owner

Originally created by @ongolaboy on GitHub (Dec 28, 2024).

Change Type

Addition

Area

Installation/upgrade

Proposed Changes

Upgrading page -> "Checking out an older release" section ...

if you did not download the complete repository during your install,

sudo git checkout v2.11.11 will not work. You will end up with

git error: pathspec 'v2.11.11' did not match any file(s) known to git

You need to download all the tags first with git fetch --tags . Then you can proceed with the previous command.

Originally created by @ongolaboy on GitHub (Dec 28, 2024). ### Change Type Addition ### Area Installation/upgrade ### Proposed Changes [Upgrading page](https://netboxlabs.com/docs/netbox/en/stable/installation/upgrading/) -> "Checking out an older release" section ... if you did not download the complete repository during your install, `sudo git checkout v2.11.11` will not work. You will end up with ``` git error: pathspec 'v2.11.11' did not match any file(s) known to git ``` You need to download all the tags first with `git fetch --tags` . Then you can proceed with the previous command.
adam added the status: duplicatetype: documentation labels 2025-12-29 21:33:27 +01:00
adam closed this issue 2025-12-29 21:33:28 +01:00
Author
Owner

@pheus commented on GitHub (Apr 9, 2025):

This was fixed by PR #18309, which addressed issue #13366.

@pheus commented on GitHub (Apr 9, 2025): This was fixed by PR #18309, which addressed issue #13366.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 9, 2025):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Jul 9, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/main/CONTRIBUTING.md).
Author
Owner

@jeremystretch commented on GitHub (Jul 9, 2025):

The --tags parameter was added to the git fetch command under #19778.

@jeremystretch commented on GitHub (Jul 9, 2025): The `--tags` parameter was added to the `git fetch` command under #19778.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10589