File tree Expand file tree Collapse file tree 3 files changed +16
-12
lines changed
Expand file tree Collapse file tree 3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 11[submodule "Avalonia "]
22 path = ext/Avalonia
33 url = https://github.com/AvaloniaUI/Avalonia.git
4- branch = release/latest
Original file line number Diff line number Diff line change @@ -11,11 +11,9 @@ param (
1111
1212$version = Get-Content ./ AvaloniaVersion.txt
1313
14- # Update git submodules
14+ # Update git submodules.
15+ git submodule update -- init -- remote -- depth= 1 -f
1516git submodule update -- init -- recursive
16- git submodule update -- remote -- recursive
17-
18- # git submodule foreach -q --recursive 'branch="$(git config -f $toplevel.gitmodules submodule.$name.branch)"; git checkout $branch'
1917
2018# set SHFBRoot
2119$env: SHFBRoot = " .\src\packages\ewsoftware.shfb\2025.3.22\tools\"
Original file line number Diff line number Diff line change @@ -7,11 +7,18 @@ if (-Not $branchName){
77 $branchName = " release/latest"
88}
99
10- # Update git submodules
11- git submodule set-branch -- branch $branchName ext/ Avalonia
12- git submodule sync -- recursive
13- git submodule update -- init -- recursive -- remote
14- git submodule foreach - q -- recursive ' branch="$(git config -f $toplevel.gitmodules submodule.$name.branch)"; git checkout $branch'
10+ # make sure submodules are initialized yet
11+ git submodule update -- init -- recursive
12+
13+ # change dir into Avalonia submodule and checkout requested branch.
14+ Set-Location .\ext\Avalonia
15+ git fetch
16+ git checkout $branchName
17+ Set-Location ..\..
1518
16- git add .\.gitmodules
17- git add .\ext\*
19+ # Commit changes
20+ git add .\ext\*
21+ git commit - m " Updated Avalonia submodule to target branch $branchName "
22+
23+ # Update git submodules
24+ git submodule update -- init -- recursive -- force
You can’t perform that action at this time.
0 commit comments