Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from "react";
- import ReactDOM from "react-dom";
- import * as git from 'isomorphic-git';
- import FS from "@isomorphic-git/lightning-fs";
- class TableContainer extends Component {
- ...... methods which culminate in a table ......
- componentDidMount() {
- window.fs = new FS("fs");
- git.plugins.set("fs", window.fs);
- window.pfs = window.fs.promises;
- window.dir = "/dirk";
- console.log(dir);
- pfs.mkdir(dir);
- git.clone({
- fs,
- dir,
- url: "https://cors-anywhere.herokuapp.com/https://gitlab.com/celduin/crash/crash-system-safety-analysis",
- ref: "master",
- singleBranch: true,
- depth: 10
- });
- pfs.readdir(dir);
- console.log(git.log({dir}));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement