This commit is contained in:
Juan Ferrer 2021-10-14 10:34:40 +02:00
parent fca2d471b1
commit ff605249ad
2 changed files with 17 additions and 1 deletions

View File

@ -2,11 +2,27 @@
const MyVC = require('./myvc'); const MyVC = require('./myvc');
const fs = require('fs-extra'); const fs = require('fs-extra');
const ejs = require('ejs'); const ejs = require('ejs');
const nodegit = require('nodegit');
class Pull { class Pull {
async run(myvc, opts) { async run(myvc, opts) {
const conn = await myvc.dbConnect(); const conn = await myvc.dbConnect();
/*
const version = await myvc.fetchDbVersion();
let repo;
if (version && version.gitCommit) {
console.log(version);
repo = await nodegit.Repository.open(opts.workspace);
const commit = await repo.getCommit(version.gitCommit);
const now = parseInt(new Date().getTime() / 1000);
const branch = await nodegit.Branch.create(repo,
`myvc_${now}`, commit, () => {});
await repo.checkoutBranch(branch);
}
return;
*/
for (const exporter of exporters) for (const exporter of exporters)
await exporter.init(); await exporter.init();

View File

@ -1,6 +1,6 @@
{ {
"name": "myvc", "name": "myvc",
"version": "1.1.7", "version": "1.1.9",
"author": "Verdnatura Levante SL", "author": "Verdnatura Levante SL",
"description": "MySQL Version Control", "description": "MySQL Version Control",
"license": "GPL-3.0", "license": "GPL-3.0",