Git-resolver cannot resolve the correct tag/commit hash with gitlab repo #9
Description
Expected Behavior
Resolve the correct tag/commit hash from the gitlab repo.
Current Behavior
Resolve master/latest instead of desired tag/commit hash.
Possible Solution
In parsePerf.js file, urlparse.hash is deleted before being used on line 35.
-Deleted at line 45
My current solution:
Save urlparse.hash to a new variable before deleting it and use it later.
Ex at line 35:
const gitCommittish = setGitCommittish(urlparse.hash != null ? urlparse.hash.slice(1) : '');
return Object.assign({ fetchSpec: urlToFetchSpec(urlparse), normalizedPref: pref }, gitCommittish);
Steps to Reproduce
pnpm install git+http://gitlab.anygitlabrepo/team/anyproject.git#anyVersionTag
OR
pnpm install git+http://gitlab.anygitlabrepo/team/anyproject.git#anyCommitHash
Context (Environment)
I do not know if it's related to my repository being private or only to gitlab/non-github repos. I did not test theses cases.