Skip to content

Commit 6e248e1

Browse files
committed
Fix #49 by making example work with tags
1 parent d2a81b4 commit 6e248e1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file
44

5+
## Unreleased
6+
7+
### Docs
8+
9+
- Fixed git submodule example to work even for tagged releases (#49)
10+
11+
512
## 0.0.4 - 2025-06-15
613

714
### Library

docs/msbuild/getting-started.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ First, run the following command in your git project root:
4141

4242
````{jinja}
4343
```console
44-
git submodule add{% if git_ref %} --branch {{git_ref}} {% endif %}https://github.com/KSPModdingLibs/KSPBuildTools.git
44+
git submodule add https://github.com/KSPModdingLibs/KSPBuildTools.git
45+
{% if git_ref %}git -C KSPBuildTools/ fetch{% endif %}
46+
{% if git_ref %}git -C KSPBuildTools/ checkout {{git_ref}}{% endif %}
4547
```
4648
````
4749

0 commit comments

Comments
 (0)