]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-submodule.sh
t3428: restore coverage for "apply" backend
[thirdparty/git.git] / git-submodule.sh
index 5e5d21c010f7d4337dbf95cd50eeaf8c97791ba8..7f9582d92343450e0c71ba72e5faee845cc1165b 100755 (executable)
@@ -244,6 +244,9 @@ cmd_update()
                -q|--quiet)
                        quiet=1
                        ;;
+               -v|--verbose)
+                       quiet=0
+                       ;;
                --progress)
                        progress=1
                        ;;
@@ -343,7 +346,6 @@ cmd_update()
                ${recursive:+--recursive} \
                ${init:+--init} \
                ${nofetch:+--no-fetch} \
-               ${wt_prefix:+--prefix "$wt_prefix"} \
                ${rebase:+--rebase} \
                ${merge:+--merge} \
                ${checkout:+--checkout} \
@@ -557,7 +559,7 @@ cmd_sync()
 
 cmd_absorbgitdirs()
 {
-       git submodule--helper absorbgitdirs --prefix "$wt_prefix" "$@"
+       git ${wt_prefix:+-C "$wt_prefix"} submodule--helper absorbgitdirs "$@"
 }
 
 # This loop parses the command line arguments to find the