Cannot read property 'data' of undefined' nodeJS , i'am trying to commit directory using nodejs
var SvnLib = require('svnlib');
Client = new SvnLib ({
cwd: './Users/Safa/Desktop/test2',
username: 'username', // optional if authentication not required or is already saved
password: 'password', // optional if authentication not required or is already saved
});
Client.update(function(err, data) {
console.log('updated');
});
Client.getInfo(function(err, data) {
console.log('Repository url is %s', data.url);
});