Skip to content

Commit fd7cc07

Browse files
committed
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
1 parent 57de7d6 commit fd7cc07

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/git-subrepo

+6
Original file line numberDiff line numberDiff line change
@@ -1808,9 +1808,15 @@ This is the common conflict resolution workflow:
18081808
7. git subrepo push $subdir $branch_name
18091809
...
18101810
else
1811+
if [[ $commit_msg_file ]]; then
1812+
cat <<...
1813+
7. git subrepo commit --file=$commit_msg_file $subdir
1814+
...
1815+
else
18111816
cat <<...
18121817
7. git subrepo commit $subdir
18131818
...
1819+
fi
18141820
fi
18151821

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

0 commit comments

Comments
 (0)