Skip to content

Commit c65c686

Browse files
committed
Fix push to new branches
https://github.com/ruby/ruby/actions/runs/20728992203/job/59511845281 ``` + git -C /data/git.ruby-lang.org/update-ruby push origin github/ruby_4_0:ruby_4_0 error: The destination you provided is not a full refname (i.e., starting with "refs/"). We tried to guess what you meant by: - Looking for a ref that matches 'ruby_4_0' on the remote side. - Checking if the <src> being pushed ('refs/remotes/github/ruby_4_0') is a ref in "refs/{heads,tags}/". If so we add a corresponding refs/{heads,tags}/ prefix on the remote side. Neither worked, so we gave up. You must fully qualify the ref. hint: The <src> part of the refspec is a commit object. hint: Did you mean to create a new branch by pushing to hint: 'refs/remotes/github/ruby_4_0:refs/heads/ruby_4_0'? error: failed to push some refs to 'file:///var/git/ruby.git' ```
1 parent 08ef236 commit c65c686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/update-ruby.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ set -eux
2424
# Sync: GitHub -> ruby_workdir -> cgit
2525
# By doing this way, we can make sure all git hooks are performed on sync-ed commits.
2626
git -C "$ruby_workdir" fetch github "$ruby_branch"
27-
SVN_ACCOUNT_NAME=git git -C "$ruby_workdir" push origin "github/${ruby_branch}:${ruby_branch}"
27+
SVN_ACCOUNT_NAME=git git -C "$ruby_workdir" push origin "github/${ruby_branch}:refs/heads/${ruby_branch}"

0 commit comments

Comments
 (0)