I am trying to clean up git repository. There are some identified big files whose size is reduced and recommitted. The issue is history still has old files. So I used bfg cleaner job to prune the git repo. For this I first create a mirror clone of repo and then do some filtering to reduce the size.
Clone command:-
git clone --mirror ssh://git@url/repo.git
I am successfully able to do clean up and reduce the size of the cloned mirror. Now I try to push it to the remote server. I use :-
git push
This fails with below error:-
Counting objects: 214329, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (80081/80081), done.
Writing objects: 100% (211535/211535), 666.00 MiB | 1.52 MiB/s, done.
Total 211535 (delta 116658), reused 206326 (delta 112960)
remote: You are attempting to update refs that are reserved for Stash's pull
request
remote: functionality. Stash manages these refs automatically, and they may
not be
remote: updated by users.
remote:
remote: Rejected refs:
remote: refs/pull-requests/190/from
remote: refs/pull-requests/247/from
remote: refs/pull-requests/247/merge
remote: refs/pull-requests/269/from
remote: refs/pull-requests/269/merge
remote: refs/pull-requests/270/from
To ssh://git@url/repo.git
! [remote rejected] integration -> integration (pre-receive hook declined)
! [remote rejected] integration_after_mavenrework -> integration_after_mavenrework (pre-receive hook declined)
! [remote rejected] master -> master (pre-receive hook declined)
I am not sure why I am not able to push. I am having write permissions to the repo.
I am stuck and any help is appreciated.