Now when we retrieve the branch/commit name, we also know which is which. i.e. if it's a branch or commit. It is very difficult to check if a commit is available on the remote repo, so we don't bother, but, if it is a branch, we will at least check that it exists in the remote before generating a link and show an error message to the user if not
Summary of changes
Now when we retrieve the branch/commit name, we also know which is which. i.e. if it's a branch or commit. It is very difficult to check if a commit is available on the remote repo, so we don't bother, but, if it is a branch, we will at least check that it exists in the remote before generating a link and show an error message to the user if not