From df57af9aad864c02aa83c49698e0edd3c26902e1 Mon Sep 17 00:00:00 2001 From: halx99 Date: Sun, 31 Mar 2024 22:13:33 +0800 Subject: [PATCH] Fixup --- 1k/build.ps1 | 3 +-- 1k/fetch.ps1 | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/1k/build.ps1 b/1k/build.ps1 index ab7bddf..ec22b37 100644 --- a/1k/build.ps1 +++ b/1k/build.ps1 @@ -230,8 +230,7 @@ $options = @{ xc = @() xb = @() j = -1 - sdk = $null - env = '' + sdk = '' dll = $false } diff --git a/1k/fetch.ps1 b/1k/fetch.ps1 index 96d9040..3151f27 100644 --- a/1k/fetch.ps1 +++ b/1k/fetch.ps1 @@ -178,6 +178,7 @@ if ($is_git_repo) { $cur_rev_hash = $(git -C $lib_src rev-parse --verify --quiet "$revision^{}") if (!$cur_rev_hash) { + git -C $lib_src fetch $cur_rev_hash = $(git -C $lib_src rev-parse --verify --quiet "$revision^{}") if (!$cur_rev_hash) { throw "fetch.ps1: Could not found commit hash of $revision"