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 fs = require('fs-extra');
const ejs = require('ejs');
const nodegit = require('nodegit');
class Pull {
async run(myvc, opts) {
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)
await exporter.init();

View File

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