Skip to content

chore: push current branch to remote#3455

Merged
JoeWang1127 merged 5 commits intomainfrom
chore/push-branch
Dec 12, 2024
Merged

chore: push current branch to remote#3455
JoeWang1127 merged 5 commits intomainfrom
chore/push-branch

Conversation

@JoeWang1127
Copy link
Contributor

@JoeWang1127 JoeWang1127 commented Dec 11, 2024

Fix error when updating googleapis commit in a new branch.

fatal: unknown commit origin/generate-libraries-main

Example run: https://github.com/googleapis/sdk-platform-java/actions/runs/12286920597/job/34287983045

@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Dec 11, 2024
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Dec 11, 2024
@JoeWang1127 JoeWang1127 marked this pull request as ready for review December 12, 2024 00:26
@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

if [ -z "${pr_num}" ]; then
git remote add remote_repo https://cloud-java-bot:"${GH_TOKEN}@github.com/${repo}.git"
git fetch -q --unshallow remote_repo
git fetch -q remote_repo
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this change, the script exit with error:

fatal: --unshallow on a complete repository does not make sense

@JoeWang1127 JoeWang1127 merged commit 18473a7 into main Dec 12, 2024
@JoeWang1127 JoeWang1127 deleted the chore/push-branch branch December 12, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants