amplify-hosting
amplify-hosting copied to clipboard
Unable to clone repository due to user error code: 128 after a force push to a previous commit (rollback):
Environment information
react JS with vite
Describe the bug
0
2025-06-09T22:11:40.960Z [INFO]: # Cloning repository: [email protected]:mytender-io/mytender-frontend.git 2025-06-09T22:11:47.556Z [INFO]:
2025-06-09T22:11:47.631Z [INFO]: Cloning into 'mytender-frontend'...
2025-06-09T22:11:47.631Z [INFO]: # Switching to commit: 594ee38d67aa373560e38e1ea5aafbf0213f76ca
2025-06-09T22:11:47.642Z [INFO]: fatal: unable to read tree (594ee38d67aa373560e38e1ea5aafbf0213f76ca)
2025-06-09T22:11:47.695Z [INFO]: Successfully cleaned up Git credentials
2025-06-09T22:11:47.696Z [ERROR]: !!! CustomerError: Unable to clone repository due to user error code: 128
2025-06-09T22:11:47.696Z [INFO]: # Starting environment caching...
2025-06-09T22:11:47.696Z [INFO]: # Environment caching completed
Reproduction steps
Push a repo to amplify. The website is deployed. Do a hard reset to a previous commit and do a force push.