I cloned a remote repository using: git clone --depth 1 --branch branch-name repo-url
Then made changes and tried to push the code to remote repo - it failed with message -
error: RPC Failed; HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error fatal: The remote hung up unexpectedly fatal: The remote hung up unexpectedly
This error comes every time i try shallow clone with --depth 1 option. While cloning the branch with full history, the push goes through perfectly fine.
I am using GIT v2.10.2. Tried with both Git Bash and SourceTree. Its the same behavior every time.
Any suggestions on how to get around this as I do not want to clone the full history of commits every time.