Version 3: No issues found when on a branch
Summary
Testing version 3: When I'm on a branch that I've created, I switch to the GitLab side tree and I can't see any issues.
Screenshot
Steps to reproduce
git checkout -b new-branch
and open the project with extension version 3
Cause
We are using follwoing code in git_service.js
:
remoteName = await fetch(`git config --get branch.${branchName}.remote`, workspaceFolder);
remoteUrl = await fetch(`git ls-remote --get-url ${remoteName}`, workspaceFolder);
The first line calls shell command: git config --get branch.new-branch.remote
. That doesn't return anything and the fetch
returns null
that results in the second line calling git ls-remote --get-url null
(notice the string null).