Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote rejected with deny updating a hidden ref when run git push #484

Open
Happy-ArthurYang opened this issue Apr 23, 2023 · 9 comments
Open

Comments

@Happy-ArthurYang
Copy link

I run this with jdk 11 with the latest version of bfg-1.14.0.jar bug with error whrn run git push
image

Also attached the report.
decodr.git.bfg-report.zip

@echonax07
Copy link

I am also facing the same issue with gitlab. I disabled the branch protection as well but still the same error.

any help would be greatly appreciated, thanks

@Happy-ArthurYang
Copy link
Author

you can try to remove your local repo and clone it again, and the size did change to smaller. so the push should have some effect.

@joihn
Copy link

joihn commented May 10, 2023

same issue for me, I'm also a gitlab user.
despite the error, It seem the cleaned item have been pushed to the remote, but I'm still suspsicious about the error message.

@cocoonkid
Copy link

cocoonkid commented Sep 30, 2023

Same issue here as gitlab user. I disabled the branch protection as well but still the same error.


╰─λ bfg --delete-files "MAosA.zip project.git

Using repo : /home/cocoonkid/Documents/tmp/project.git

Found 2050 objects to protect
Found 6 commit-pointing refs : HEAD, refs/heads/dev, refs/heads/development, ...

Protected commits
-----------------

These are your protected commits, and so their contents will NOT be altered:

 * commit f89d2720 (protected by 'HEAD')

Cleaning
--------

Found 208 commits
Cleaning commits:       100% (208/208)
Cleaning commits completed in 92 ms.

BFG aborting: No refs to update - no dirty commits found??

The file is also still visible in the repo in the specific commit. But bfg does not even find it.

I followed the instructions to the dot.

@doliG
Copy link

doliG commented Oct 11, 2023

Same issue here when trying a dry run on a sandbox repo, please maintainer can you help on what should we do when we encounter this error ?

From my understanding this is because GitHub/GitLab still has references to the old commits in any pull requests. Even though BFG has rewritten the commits, GitHub still has read-only refs for the old commits in pull requests.

To resolve this, I found a couple options:

  • Contact GitHub support and ask them to delete the pull requests for our repo. This will permanently remove the refs to the old commits.
  • Live with the error messages. The push was actually successful in rewriting our repository history, but GitHub still has the old refs for pull requests. This will increase the size of our repository on GitHub slightly.
  • Create a new temporary repository, push your cleaned history there, then rename the repositories. Then ask users to clone the new repository.

@doliG
Copy link

doliG commented Oct 20, 2023

Please contributors have a look at the OP of this one. This is an interessing problem worth to explain / mention in the doc and BFG's website (imho).

@rtyley @javabrett @dwijnand

Also this repo needs a bit of triage in the issue, a spammer spawned few days ago..

@ismet55555
Copy link

I'm facing the same issue when using bfg repo cleaner

@Chili-Man
Copy link

Same here as well

@lacy-rvo
Copy link

#36 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants