Uploaded image for project: 'SR for Bitbucket - Development'
  1. SR for Bitbucket - Development
  2. SRBITB-273

Git LFS check fails when pushing changes from Git submodules

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.3.8
    • Labels:
      None
    • Sprint:
      Sprint 37 - Ends Jan 29
    • Critical Points:
      0.9

      Description

      Setup a Git submodule repository as explained here and push this to Bitbucket server.

      Setup the restrict file size hook for that repository and select "Exclude LFS files" option.

      Perform the following steps in the repo:

      $ git checkout master
      $ git checkout -b feature/aNewBranch
      $ git submodule update --init
      $ cd submoduleRefFolder
      $ git fetch --all --prune --tags
      $ git checkout refs/tags/<version> (or commitId or branchName)
      $ cd ../
      $ git push -u origin feature/aNewBranch

      The push fails with the following in the logs:

        Attachments

          Activity

            People

            Assignee:
            amarkham Adam Markham
            Reporter:
            amarkham Adam Markham
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: