Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Cloud build failing to pull from bitbucket after enabling LFS

Discussion in 'Unity Build Automation' started by Teh_K, Nov 23, 2017.

  1. Teh_K

    Teh_K

    Joined:
    Feb 9, 2014
    Posts:
    3
    After I made some history-changing modifications to my repo to move all my large files to BitBucket Git LFS, Cloud build is failing to pull due to invalid commit ranges. This is resulting in the following error:

    Code (CSharp):
    1. 26: GIT: Get current revision
    2. 27: GIT: Current revision is 98a39f16bc4f013bcba0b3be2a163c85847c8d3d
    3. 28: GIT: Get changeset between 3328e5a7b5dad8e8a52be854d3e1144fdae4d659 and 98a39f16bc4f013bcba0b3be2a163c85847c8d3d (max 15)
    4. 29: Error getting changeset! git '--git-dir=/BUILD_PATH/red-blue-games.sparklite.release-windows-64bit/.git' '--work-tree=/BUILD_PATH/red-blue-games.sparklite.release-windows-64bit' log '-15' '--no-color' '3328e5a7b5dad8e8a52be854d3e1144fdae4d659..98a39f16bc4f013bcba0b3be2a163c85847c8d3d' '--pretty=raw'  2>&1:fatal: Invalid revision range 3328e5a7b5dad8e8a52be854d3e1144fdae4d659..98a39f16bc4f013bcba0b3be2a163c85847c8d3d
    Is there a way to fix this?

    Thanks!
     
  2. dannyd

    dannyd

    Unity Technologies

    Joined:
    Jun 3, 2014
    Posts:
    785
    That shouldn't affect what's actually being pulled, just the parsing of the changeset. Error should go away after next successful build for that target.