checkout: mention '--' in the docs
[gitweb.git] / git-submodule.sh
index 9228f56bee7fd82d530a6865f1f8669fd9b99d8f..b40f876a2ca9fe985cedc622ab28a9f461edc5ab 100755 (executable)
@@ -264,6 +264,7 @@ cmd_update()
        do
                case "$1" in
                -q|--quiet)
+                       shift
                        quiet=1
                        ;;
                -i|--init)
@@ -281,7 +282,6 @@ cmd_update()
                        break
                        ;;
                esac
-               shift
        done
 
        git ls-files --stage -- "$@" | grep '^160000 ' |