When a force push fails, as far as I could tell it's not a problem with neither the repository state nor with git, so this PR makes failing force pushes be handled as any other rejected push. There's no tests whatsoever for just the function executing git commands and I haven't yet added any, but from what I tried manually breaking it nothing happened.
I'm open to add some tests for runGit specifically but I'd prefer getting started with other tests first. Please let me know what I can do better.
When a force push fails, as far as I could tell it's not a problem with neither the repository state nor with git, so this PR makes failing force pushes be handled as any other rejected push. There's no tests whatsoever for just the function executing git commands and I haven't yet added any, but from what I tried manually breaking it nothing happened.
I'm open to add some tests for
runGit
specifically but I'd prefer getting started with other tests first. Please let me know what I can do better.