Added proper check for bare repo on other codehost
Created by: varsanojidan
Linked to the changes in this PR
Not all bare repositories will necessarily end with .git in the name (i.e. if you just init a new bare repo it won't have .git in it's name), therefore it is more concrete to just get the info on if a repo is bare or not, from the src-cli itself because it knows this information.
Test plan
Tested locally.