Bump module version to 1.4.3 and update download URL in Get-GiteaChildItem function to allow for getting LFS files from other branches
This commit is contained in:
@@ -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]@{
|
||||
|
||||
Reference in New Issue
Block a user