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

Packman

-

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

  1. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0a7

  2. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.2f1

  3. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.2f1

  4. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.24f1

Comments (2)

  1. 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

  2. guneyozsan

    Nov 08, 2022 09:49

    Still observed in 2021.3.7f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.