Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): refactor subrepo script #1175

Merged
merged 2 commits into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/git_subrepo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ if [ -d "$SUBREPO_PATH" ] ; then
# Get parent of the last commit
new_parent=$(git log --pretty=%P -n 1 $last_commit)

# Update parent in .gitrepo file using perl
perl -pi -e "s/${parent_commit}/${new_parent}/g" "$SUBREPO_PATH/.gitrepo"
# Update parent in .gitrepo file
git config --file="$SUBREPO_PATH/.gitrepo" subrepo.parent $new_parent

# Commit this change
git add "$SUBREPO_PATH/.gitrepo"
Expand Down