mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 23:33:38 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
15
node_modules/git-remote-origin-url/index.js
generated
vendored
Normal file
15
node_modules/git-remote-origin-url/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
const gitconfig = require('gitconfiglocal');
|
||||
const pify = require('pify');
|
||||
|
||||
module.exports = dir => {
|
||||
return pify(gitconfig)(dir || process.cwd()).then(config => {
|
||||
var url = config.remote && config.remote.origin && config.remote.origin.url;
|
||||
|
||||
if (!url) {
|
||||
throw new Error('Couldn\'t find origin url');
|
||||
}
|
||||
|
||||
return url;
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user