Skip to content

Commit

Permalink
Merge pull request #750 from raineorshine/git-tags-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine authored Oct 26, 2020
2 parents 29293d4 + 70df6c6 commit cfeec94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/package-managers/gitTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const { print } = require('../logging')

/** Return the highest numbered tag on a remote Git URL. */
const greatest = async (name, version, options) => {
const { protocol, host, path } = parseGithubUrl(version)
const url = `${protocol ? protocol.replace('git+', '') : 'https:'}//${host}/${path}`
const { auth, protocol, host, path } = parseGithubUrl(version)
const url = `${protocol ? protocol.replace('git+', '') : 'https:'}//${auth ? auth + '@' : ''}${host}/${path}`
let tagMap = new Map()

// fetch remote tags
Expand Down

0 comments on commit cfeec94

Please sign in to comment.