Skip to content

Commit

Permalink
Include message file in error resolution
Browse files Browse the repository at this point in the history
When a command has an error subrepo prints instructions on how to
resolve the issue. If the user supplied a commit message file that
information was not included in the resolution information.

Change-Id: I08bc4228651a31324e25999a28f38a2750f1fa0c
  • Loading branch information
admorgan committed Oct 7, 2024
1 parent 57de7d6 commit fd7cc07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/git-subrepo
Original file line number Diff line number Diff line change
Expand Up @@ -1808,9 +1808,15 @@ This is the common conflict resolution workflow:
7. git subrepo push $subdir $branch_name
...
else
if [[ $commit_msg_file ]]; then
cat <<...
7. git subrepo commit --file=$commit_msg_file $subdir
...
else
cat <<...
7. git subrepo commit $subdir
...
fi
fi

if [[ $command == pull && $join_method == rebase ]]; then
Expand Down

0 comments on commit fd7cc07

Please sign in to comment.