File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
- _commit : 2024.1.1-306-g186666a
2
+ _commit : 2024.2.0-5-g9ca0952
3
3
_src_path : gh:softboiler/copier-pipeline
4
4
actions_runner : ubuntu-22.04
5
5
github_repo_name : copier-pipeline
Original file line number Diff line number Diff line change @@ -40,17 +40,16 @@ function Install-Uv {
40
40
Invoke `uv`.#>
41
41
Param ([switch ]$Update )
42
42
$Env: PATH = " $HOME /.cargo/bin$ ( [System.IO.Path ]::PathSeparator) $Env: PATH "
43
- if (Get-Command ' uv' - ErrorAction ' Ignore' ) {
44
- if ( $Update ) { uv self update }
45
- return
43
+ if (( Get-Command ' uv' - ErrorAction ' Ignore' ) -and $Update ) {
44
+ try { uv self update }
45
+ catch [ System.Management.Automation.NativeCommandExitException ] {}
46
46
}
47
47
if ($IsWindows ) {
48
48
Invoke-RestMethod ' https://astral.sh/uv/install.ps1' | Invoke-Expression
49
49
}
50
50
else {
51
51
curl -- proto ' =https' -- tlsv1.2 - LsSf ' https://astral.sh/uv/install.sh' | sh
52
52
}
53
-
54
53
}
55
54
56
55
function New-Switch {
@@ -222,6 +221,7 @@ function Sync-Template {
222
221
if (! (Get-Command ' uv' - ErrorAction ' Ignore' )) { Install-Uv - Update }
223
222
$Copier = " copier@$ ( Get-Content ' .copier-version' ) "
224
223
$Ref = $Stay ? (Get-Content ' .copier-answers.yml' | Find-Pattern ' ^_commit:\s.+-(.+)$' ) : $Ref
224
+ if (! $Ref ) {$Ref = ' HEAD' }
225
225
if ($Recopy ) {
226
226
if ($Prompt ) { return uvx $Copier recopy $Defaults -- vcs- ref= $Ref }
227
227
return uvx $Copier recopy -- overwrite -- defaults
You can’t perform that action at this time.
0 commit comments