rtyley / bfg-repo-cleaner

Removes large or troublesome blobs like git-filter-branch does, but faster. And written in Scala
https://rtyley.github.io/bfg-repo-cleaner/
GNU General Public License v3.0
10.95k stars 540 forks source link

Pull-request falsely detected #342

Open chrhasi opened 4 years ago

chrhasi commented 4 years ago

Hello,

I'm trying to clean a repo in bitbucket with BFG repo cleaner. When i try to push the cleaned repo, i get this error message:

remote: You are attempting to update refs that are reserved for Bitbucket's pull request functionality. Bitbucket manages these refs automatically, and they may not be updated by users.

I did never create any pull requests, but i see that the so called pull-request-ref points to a commit with the word "pull" in the commit message. Is that an error in the BFG code or is bitbucket the problem? I already found a solution (https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-reserved-refs-when-cleaning-up-with-BFG-tool/qaq-p/702969), but i don't want to set up a new repo, because i'm not the owner of it and i think this might be a bug in BFG.

Thanks for all advices Christoph

rtyley commented 4 years ago

Hi Christoph- as an initial investigation, could you do a quick search of the BFG code base and see where the string "pull" occurs, to see where the BFG might be acting on that string?

chrhasi commented 4 years ago

Ok, in the meantime i found out that i was wrong thinking that the BFG is the problem. I already have the pull request in the repo after the mirror-cloning:

$ git remote show origin

Do you know how that happens?