Skip to content

Commit

Permalink
Set up git in build container
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Sep 20, 2023
1 parent 5d4fb43 commit 00f6693
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/build/build-deb.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ if ( "$(wsl --list --verbose | Select-String Ubuntu-Preview)" -eq "" ) {
Write-Error "could not install Ubuntu-Preview"
exit 1
}

Copy-Item -Path "${HOME}/.gitconfig" -Destination "\\wsl$\Ubuntu-Preview"
}

# Write script to run
Expand All @@ -50,7 +52,7 @@ git config --global --add safe.directory "$(pwd)"
# Update internal dependencies in the repo because
# we need git to work, and .git is not rsync'd.
cd wsl-pro-service
go version || (
go version || (
sudo DEBIAN_FRONTEND=noninteractive apt update
sudo DEBIAN_FRONTEND=noninteractive apt install -y golang-go
)
Expand Down

0 comments on commit 00f6693

Please sign in to comment.