We need to check that the branch is different from the SHA because in the case where a user wants to checkout a specific commit, the SHA and branch will be the same and in that case the shouldCheckoutSha function should return true.
Desktop (please complete the following information):
Describe the bug An example of a valid git repository passed to a project would be:
But because of the
shouldCloneBranch
method of the git service, the branch is not cloned.To Reproduce Steps to reproduce the behavior:
Expected behavior The repo should be cloned on the appropriate branch. The
shouldCloneBranch
method should be changed to:We need to check that the branch is different from the SHA because in the case where a user wants to checkout a specific commit, the SHA and branch will be the same and in that case the
shouldCheckoutSha
function should returntrue
.Desktop (please complete the following information):