Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-3075

[Git] Accepting pull request corrupts repository

    XMLWordPrintable

    Details

      Description

      I just set up a Git repo (booksavr.git), and forked it from my organizations (elmcitylabs) account into dlo/booksavr.git.

      I made a small change to test out the pull requests, and successfully (at least I thought) merged into into the main branch.

      However, when trying to pull down from the new tree, I get this error:

      {{{
      $ git pull origin master
      fatal: loose object 70e3b32923b05bbe280ca1226c4e4acb8b1ed54f (stored in ./objects/70/e3b32923b05bbe280ca1226c4e4acb8b1ed54f) is corrupt
      fatal: The remote end hung up unexpectedly
      }}}

      I then tried to inspect this object--but then realized this was on the remote, so I couldn't. My next line of attack was to simply bypass the pull request altogether and just force the push into the main repo.

      This is what happened:

      {{

      {\\ $ git push origin master --force\\ Counting objects: 762, done.\\ Delta compression using up to 2 threads.\\ Compressing objects: 100% (269/269), done.\\ Writing objects: 100% (701/701), 1.05 MiB, done.\\ Total 701 (delta 442), reused 679 (delta 423)\\ remote: fatal: loose object 70e3b32923b05bbe280ca1226c4e4acb8b1ed54f (stored in /data/netapp02/netapp02_sas01_09/data/d-859/r-387859//objects/70/e3b32923b05bbe280ca1226c4e4acb8b1ed54f) is corrupt\\ remote: fatal: loose object 70e3b32923b05bbe280ca1226c4e4acb8b1ed54f (stored in /data/netapp02/netapp02_sas01_09/data/d-859/r-387859//objects/70/e3b32923b05bbe280ca1226c4e4acb8b1ed54f) is corrupt\\ remote: fatal: loose object 70e3b32923b05bbe280ca1226c4e4acb8b1ed54f (stored in /data/netapp02/netapp02_sas01_09/data/d-859/r-387859//objects/70/e3b32923b05bbe280ca1226c4e4acb8b1ed54f) is corrupt\\ remote: bb/acl: dlo is allowed. accepted payload.\\ remote: fatal: loose object 70e3b32923b05bbe280ca1226c4e4acb8b1ed54f (stored in /data/netapp02/netapp02_sas01_09/data/d-859/r-387859//objects/70/e3b32923b05bbe280ca1226c4e4acb8b1ed54f) is corrupt\\ remote: fatal: loose object 70e3b32923b05bbe280ca1226c4e4acb8b1ed54f (stored in /data/netapp02/netapp02_sas01_09/data/d-859/r-387859//objects/70/e3b32923b05bbe280ca1226c4e4acb8b1ed54f) is corrupt\\ remote: fatal: loose object 70e3b32923b05bbe280ca1226c4e4acb8b1ed54f (stored in /data/netapp02/netapp02_sas01_09/data/d-859/r-387859//objects/70/e3b32923b05bbe280ca1226c4e4acb8b1ed54f) is corrupt\\ To git@git.elmcitylabs.com:elmcitylabs/booksavr.git * 70e3b32...0ba2040 master -> master (forced update)\\ }}

      }

        Attachments

          Activity

            People

            Assignee:
            93e1e5ba154a brodie
            Reporter:
            legacy-bitbucket-user Legacy Bitbucket Cloud User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: