fcl: Fail if unable to fetch config
This commit is contained in:
2
fcl
2
fcl
@ -66,7 +66,7 @@ def destination_path(repo_str)
|
|||||||
repo_elms = repo_str.split('/')
|
repo_elms = repo_str.split('/')
|
||||||
|
|
||||||
repo = repo_elms.pop.sub(/\.git$/, '')
|
repo = repo_elms.pop.sub(/\.git$/, '')
|
||||||
org = repo_elms.pop || Config['FCL_DEFAULT_ORG']
|
org = repo_elms.pop || Config.fetch('FCL_DEFAULT_ORG')
|
||||||
forge = repo_elms.pop || 'github.com'
|
forge = repo_elms.pop || 'github.com'
|
||||||
|
|
||||||
File.join(forge, org, repo)
|
File.join(forge, org, repo)
|
||||||
|
|||||||
Reference in New Issue
Block a user