Multiple methods to get a git repository #2172
Unanswered
EvanCarroll
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are three methods of getting a git repository url,
./lib/get-git-auth-url.js
./lib/get-config.js
which gets it from thepackage.json
, or from./lib/git.js
./lib/git.js
which gets it by runninggit config --get remote.origin.url
It's not clear why that is though. Whatever gets the "git repository" I'm not sure why it needs to involve logic in three places. It's difficult to follow. In my case, I'm fairly sure what is being returned by
get-config
is what I want, and what is returned byget-git-auth-url
is not what I want.Beta Was this translation helpful? Give feedback.
All reactions