Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
0
Found in
2019.4
2020.2
2021.1
2021.2
Issue ID
1307682
Regression
No
Package Manager fails to download LFS files from Git repository when the Git URL contains a path and a branch query
How to reproduce:
1. Make sure that Git and Git LFS are installed
2. Open the attached "1307682 repro" project
3. Open the Packages > lfs_test > Editor folder
Expected result: the "NewImage2.png" Asset is downloaded
Actual result: the "NewImage2.png" Asset isn't downloaded and it only contains the metadata about the file
Reproducible with: 2019.4.18f1, 2020.2.1f1, 2021.1.0b2, 2021.2.0a1
Could not test with: 2018.4.30f1 (the Package Manager fails to resolve any git URLs with a path query parameter)
Notes:
-The package contains two .png Assets: "NewImage.png" and "NewImage2.png". The first image is downloaded successfully and it is from the Master branch of the package. The second image is never downloaded and it is specific to the "TestBranch" branch.
-Changing the Git URL ending from
"https://github.com/Augustinas-simkus/My_LFS_Package2.git?path=/Case2#TestBranch" to
"https://github.com/Augustinas-simkus/My_LFS_Package.git#TestBranch" solves the issue and both LFS files are downloaded successfully
Comments (3)
-
meaf75
Apr 20, 2025 23:58
Still happening in Unity 6000.0.47f1
-
litteBugHunter
Jan 20, 2023 15:27
I encountered this issue today. in Version 2021.3.16f1 and fixed it by putting my .gitattributes file next to the package.json file. Apparently the package manager only pulls from lfs if the .gitattributes file is present
-
guneyozsan
Nov 08, 2022 09:49
Still observed in 2021.3.7f1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- WebGL Player with WebGPU Graphics API fails to render Scene when custom Render Feature is used
- “EndLayoutGroup” error thrown when changing Shader Precision Model settings in Build Profiles window > Player Settings Overrides
- Button hover state uses default theme color when a custom .uss is applied
- Samples Showcase script warning does not clear after enabling required settings until GameObject is reselected
- VFX Particles receive shadow artifacts when using ShaderGraph with enabled shadows and Face Camera Plane Orient mode
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a7
Resolution Note (fix version 2021.1):
Fixed in 2021.1.2f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.2f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.24f1