@@ -622,7 +622,7 @@ cmd_update()
622
622
die_if_unmatched " $mode "
623
623
if test " $stage " = U
624
624
then
625
- echo >&2 " Skipping unmerged submodule $sm_path "
625
+ echo >&2 " Skipping unmerged submodule $prefix$ sm_path "
626
626
continue
627
627
fi
628
628
name=$( module_name " $sm_path " ) || exit
@@ -637,7 +637,7 @@ cmd_update()
637
637
638
638
if test " $update_module " = " none"
639
639
then
640
- echo " Skipping submodule '$sm_path '"
640
+ echo " Skipping submodule '$prefix$ sm_path '"
641
641
continue
642
642
fi
643
643
@@ -646,7 +646,7 @@ cmd_update()
646
646
# Only mention uninitialized submodules when its
647
647
# path have been specified
648
648
test " $# " ! = " 0" &&
649
- say " $( eval_gettext " Submodule path '\$ sm_path' not initialized
649
+ say " $( eval_gettext " Submodule path '\$ prefix \$ sm_path' not initialized
650
650
Maybe you want to use 'update --init'?" ) "
651
651
continue
652
652
fi
@@ -659,7 +659,7 @@ Maybe you want to use 'update --init'?")"
659
659
else
660
660
subsha1=$( clear_local_git_env; cd " $sm_path " &&
661
661
git rev-parse --verify HEAD) ||
662
- die " $( eval_gettext " Unable to find current revision in submodule path '\$ sm_path'" ) "
662
+ die " $( eval_gettext " Unable to find current revision in submodule path '\$ prefix \$ sm_path'" ) "
663
663
fi
664
664
665
665
if test -n " $remote "
@@ -692,7 +692,7 @@ Maybe you want to use 'update --init'?")"
692
692
(clear_local_git_env; cd " $sm_path " &&
693
693
( (rev=$( git rev-list -n 1 $sha1 --not --all 2> /dev/null) &&
694
694
test -z " $rev " ) || git-fetch)) ||
695
- die " $( eval_gettext " Unable to fetch in submodule path '\$ sm_path'" ) "
695
+ die " $( eval_gettext " Unable to fetch in submodule path '\$ prefix \$ sm_path'" ) "
696
696
fi
697
697
698
698
# Is this something we just cloned?
@@ -706,20 +706,20 @@ Maybe you want to use 'update --init'?")"
706
706
case " $update_module " in
707
707
rebase)
708
708
command=" git rebase"
709
- die_msg=" $( eval_gettext " Unable to rebase '\$ sha1' in submodule path '\$ sm_path'" ) "
710
- say_msg=" $( eval_gettext " Submodule path '\$ sm_path': rebased into '\$ sha1'" ) "
709
+ die_msg=" $( eval_gettext " Unable to rebase '\$ sha1' in submodule path '\$ prefix \$ sm_path'" ) "
710
+ say_msg=" $( eval_gettext " Submodule path '\$ prefix \$ sm_path': rebased into '\$ sha1'" ) "
711
711
must_die_on_failure=yes
712
712
;;
713
713
merge)
714
714
command=" git merge"
715
- die_msg=" $( eval_gettext " Unable to merge '\$ sha1' in submodule path '\$ sm_path'" ) "
716
- say_msg=" $( eval_gettext " Submodule path '\$ sm_path': merged in '\$ sha1'" ) "
715
+ die_msg=" $( eval_gettext " Unable to merge '\$ sha1' in submodule path '\$ prefix \$ sm_path'" ) "
716
+ say_msg=" $( eval_gettext " Submodule path '\$ prefix \$ sm_path': merged in '\$ sha1'" ) "
717
717
must_die_on_failure=yes
718
718
;;
719
719
* )
720
720
command=" git checkout $subforce -q"
721
- die_msg=" $( eval_gettext " Unable to checkout '\$ sha1' in submodule path '\$ sm_path'" ) "
722
- say_msg=" $( eval_gettext " Submodule path '\$ sm_path': checked out '\$ sha1'" ) "
721
+ die_msg=" $( eval_gettext " Unable to checkout '\$ sha1' in submodule path '\$ prefix \$ sm_path'" ) "
722
+ say_msg=" $( eval_gettext " Submodule path '\$ prefix \$ sm_path': checked out '\$ sha1'" ) "
723
723
;;
724
724
esac
725
725
@@ -737,11 +737,16 @@ Maybe you want to use 'update --init'?")"
737
737
738
738
if test -n " $recursive "
739
739
then
740
- (clear_local_git_env; cd " $sm_path " && eval cmd_update " $orig_flags " )
740
+ (
741
+ prefix=" $prefix$sm_path /"
742
+ clear_local_git_env
743
+ cd " $sm_path " &&
744
+ eval cmd_update " $orig_flags "
745
+ )
741
746
res=$?
742
747
if test $res -gt 0
743
748
then
744
- die_msg=" $( eval_gettext " Failed to recurse into submodule path '\$ sm_path'" ) "
749
+ die_msg=" $( eval_gettext " Failed to recurse into submodule path '\$ prefix \$ sm_path'" ) "
745
750
if test $res -eq 1
746
751
then
747
752
err=" ${err} ;$die_msg "
0 commit comments