Added integration test for git commands in ci:promote

- Fixed several git ci:promote bugs

[#81732606]

Signed-off-by: Karl Isenberg <kisenberg@pivotal.io>