From 5854940f75951547f477de58431bd05494a9fafc Mon Sep 17 00:00:00 2001 From: Raymond LaRose Date: Tue, 27 May 2025 12:11:54 -0400 Subject: [PATCH] Bump module version to 1.4.3 and update download URL in Get-GiteaChildItem function to allow for getting LFS files from other branches --- PS-GiteaUtilities/PS-GiteaUtilities.psd1 | 2 +- PS-GiteaUtilities/PS-GiteaUtilities.psm1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PS-GiteaUtilities/PS-GiteaUtilities.psd1 b/PS-GiteaUtilities/PS-GiteaUtilities.psd1 index 74efb18..7a34c82 100644 --- a/PS-GiteaUtilities/PS-GiteaUtilities.psd1 +++ b/PS-GiteaUtilities/PS-GiteaUtilities.psd1 @@ -12,7 +12,7 @@ RootModule = 'PS-GiteaUtilities.psm1' # Version number of this module. -ModuleVersion = '1.4.2' +ModuleVersion = '1.4.3' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/PS-GiteaUtilities/PS-GiteaUtilities.psm1 b/PS-GiteaUtilities/PS-GiteaUtilities.psm1 index 6ce9274..aa9e49c 100644 --- a/PS-GiteaUtilities/PS-GiteaUtilities.psm1 +++ b/PS-GiteaUtilities/PS-GiteaUtilities.psm1 @@ -732,7 +732,7 @@ Function Get-GiteaChildItem { $item.size = [long]$matches[1] } # Set the download URL to the media endpoint for LFS files to download the actual file - $item.download_url = "$giteaURL/api/v1/repos/$repoOwner/$repoName/media/$($item.path)" + $item.download_url = "$giteaURL/api/v1/repos/$repoOwner/$repoName/media/$($item.path)?ref=$branch" } $itemObj = [PSCustomObject]@{