Skip to content
Snippets Groups Projects
Commit 4e6099ae authored by Alex Kanitz's avatar Alex Kanitz
Browse files

Update README.md

parent 3bb427c7
No related branches found
No related tags found
No related merge requests found
......@@ -24,13 +24,19 @@ Traverse to generated directory
cd krini
```
Switch to submodule branches configured in `.gitmodules` (otherwise submodules point to detached head) and pull the latest changes
Switch to submodule branches configured in `.gitmodules` (otherwise submodules point to detached head)
```bash
git submodule foreach 'branch="$(git config -f ../.gitmodules submodule.$name.branch)"; git checkout $branch'
```
> Note: When updating the superproject including all submodules, do:
```bash
git pull
git submodule sync
git submodule update
git submodule foreach 'branch="$(git config -f ../.gitmodules submodule.$name.branch)"; git checkout $branch'
git submodule foreach 'branch="$(git config -f ../.gitmodules submodule.$name.branch)"; git pull origin $branch'
git submodule foreach git pull
```
## Running tests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment