From fd7cc07bb5c81d25f260d5fdb9907c85daf18901 Mon Sep 17 00:00:00 2001 From: Austin Morgan Date: Mon, 7 Oct 2024 16:19:18 -0500 Subject: [PATCH] Include message file in error resolution 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 --- lib/git-subrepo | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/git-subrepo b/lib/git-subrepo index cfeeae92..546f061a 100755 --- a/lib/git-subrepo +++ b/lib/git-subrepo @@ -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