I am trying to create a script that can mirror my git repository to another repository. Everything goes fine, but it it keeps saying
[remote rejected] refs/pull/xx/head -> refs/pull/xx/head (The current action can only be performed by the system.)
The repository is cloned to a folder on my computer, and then pushed to another git. All files and history is cloned and pushed as it should, but this "error" keeps coming up. What can i do?
This is my script
git clone --mirror https://path1.com/_git/fredagsproject1
cd fredagsproject1.git
git remote set-url --push origin https://path2.com/_git/fredagsproject2
git push --mirror
