Skip to content

Commit 216a938

Browse files
committed
remove pr path trial
1 parent 6a58d3b commit 216a938

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

bin/cml/pr.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
const kebabcaseKeys = require('kebabcase-keys');
2-
const fs = require('fs');
3-
const git = require('isomorphic-git');
4-
const http = require('isomorphic-git/http/node');
52

63
const { GIT_REMOTE, GIT_USER_NAME, GIT_USER_EMAIL } = require('../../src/cml');
74
const CML = require('../../src/cml').default;
@@ -10,15 +7,6 @@ exports.command = 'pr <glob path...>';
107
exports.description = 'Create a pull request with the specified files';
118

129
exports.handler = async (opts) => {
13-
const gitpath = await git.findRoot({ fs, filepath: process.cwd() });
14-
const gitops = { fs, http, dir: gitpath };
15-
const sha = await git.resolveRef({ ...gitops, ref: 'HEAD' });
16-
console.log(sha);
17-
18-
const path = await git.findRoot({ fs, filepath: process.cwd() });
19-
console.log(path);
20-
process.exit(1);
21-
2210
const cml = new CML(opts);
2311
await cml.init();
2412
const link = await cml.prCreate({ ...opts, globs: opts.globpath });

0 commit comments

Comments
 (0)