Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fs.writeFile(dataFile, JSON.stringify(obj, null, 2), function(err)
{
require('simple-git')(directory)
.add('.')
.commit(options.message)
.push('origin', 'master');
});
fs.writeFile(dataFile, JSON.stringify(obj, null, 2), function(err)
{
require('simple-git')(directory)
.add('.')
.commit(options.message)
.push('origin', 'master');
});