Skip to content

Commit

Permalink
Tweak push command
Browse files Browse the repository at this point in the history
  • Loading branch information
kpgalligan committed Dec 12, 2024
1 parent 3604200 commit ad9b8b9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 7 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ export async function run(): Promise<void> {

try {
const git = simpleGit()
await git.raw('fetch', remoteRepoUrl, remoteBranch)

try {
await git.raw('fetch', remoteRepoUrl, remoteBranch)
} catch (e) {
console.log(`Branch ${remoteBranch} not found in remote repo ${remoteRepoUrl}.`)

Check failure on line 53 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace ``Branch·${remoteBranch}·not·found·in·remote·repo·${remoteRepoUrl}.`` with `⏎········`Branch·${remoteBranch}·not·found·in·remote·repo·${remoteRepoUrl}.`⏎······`
await git.raw('fetch', remoteRepoUrl)
}
await git.raw('branch', 'remote_swift_package', 'FETCH_HEAD')
await git.raw('worktree', 'add', '.git/tmp/remote_swift_package', 'remote_swift_package')

Check failure on line 57 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Replace `'worktree',·'add',·'.git/tmp/remote_swift_package',·'remote_swift_package'` with `⏎······'worktree',⏎······'add',⏎······'.git/tmp/remote_swift_package',⏎······'remote_swift_package'⏎····`

Expand Down

0 comments on commit ad9b8b9

Please sign in to comment.