Skip to content

Commit

Permalink
Adjust branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 16, 2023
1 parent cc1f39c commit 8b27832
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dev/tasks/macros.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,14 @@ on:
cp ../dev/tasks/homebrew-formulae/autobrew/apache-arrow*.rb tools/

# Pin the git commit in the formula to match
cd tools
pushd tools
if [ "{{ is_fork }}" == "true" ]; then
sed -i.bak -E -e 's/apache\/arrow.git"$/{{ arrow.github_repo.split("/") | join("\/") }}.git", :revision => "'"{{ arrow.head }}"'"/' apache-arrow*.rb
sed -i.bak -E -e 's/apache\/arrow.git", branch: "main"$/{{ arrow.github_repo.split("/") | join("\/") }}.git", :revision => "'"{{ arrow.head }}"'"/' apache-arrow*.rb
else
sed -i.bak -E -e 's/arrow.git"$/arrow.git", :revision => "'"{{ arrow.head }}"'"/' apache-arrow*.rb
sed -i.bak -E -e 's/arrow.git", branch: "main"$/arrow.git", :revision => "'"{{ arrow.head }}"'"/' apache-arrow*.rb
fi
rm -f apache-arrow*.rb.bak
popd
{% endmacro %}

{%- macro github_change_r_pkg_version(is_fork, version) -%}
Expand Down

0 comments on commit 8b27832

Please sign in to comment.