Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Jan 22, 2025
1 parent 9a5997f commit f00ab6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30395,7 +30395,7 @@ function useGit(context) {
function cloneRepo() {
return __awaiter(this, arguments, void 0, function* (branchName = 'develop') {
// const repo_url = `https://${context.token}@github.com/${context.owner}/${context.repo}.git`
const repo_url = `git@github.com:${context.owner}}/${context.repo}.git`;
const repo_url = `git@github.com:${context.owner}/${context.repo}.git`;
yield (0, exec_1.exec)('git', ['clone', '-b', branchName, repo_url, `../${context.repo}`]);
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface GitContext {
export default function useGit(context: GitContext) {
async function cloneRepo(branchName = 'develop') {
// const repo_url = `https://${context.token}@github.com/${context.owner}/${context.repo}.git`
const repo_url = `git@github.com:${context.owner}}/${context.repo}.git`
const repo_url = `git@github.com:${context.owner}/${context.repo}.git`
await exec('git', ['clone', '-b', branchName, repo_url, `../${context.repo}`])
}
async function createBranch(branch: string) {
Expand Down

0 comments on commit f00ab6d

Please sign in to comment.