mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Only remove 'git+' if 'git' type matches
This commit is contained in:
@@ -46,7 +46,8 @@ module.exports = (grunt) ->
|
||||
invalidPackages = true
|
||||
grunt.log.error("#{metadata.name}: #{msg}")
|
||||
normalizePackageData metadata, reportPackageError, true
|
||||
metadata.repository.url ?= metadata.repository.url?.replace(/^git\+/, '')
|
||||
if metadata.repository.type is 'git'
|
||||
metadata.repository.url ?= metadata.repository.url?.replace(/^git\+/, '')
|
||||
|
||||
moduleCache = metadata._atomModuleCache ? {}
|
||||
|
||||
|
||||
@@ -29,7 +29,8 @@ class Package
|
||||
unless metadata?._id
|
||||
normalizePackageData ?= require 'normalize-package-data'
|
||||
normalizePackageData(metadata)
|
||||
metadata.repository.url = metadata.repository.url.replace(/^git\+/, '')
|
||||
if metadata.repository.type is 'git'
|
||||
metadata.repository.url = metadata.repository.url.replace(/^git\+/, '')
|
||||
metadata
|
||||
|
||||
@loadMetadata: (packagePath, ignoreErrors=false) ->
|
||||
|
||||
Reference in New Issue
Block a user