Files given on the command line are relative to $cwd
[gitweb.git] / git-submodule.sh
index 099a7d7560879c284c9fb2fff68f4588baaaf49b..21e5b5b7daf341a59b9496b235adcceafe4f2c8c 100755 (executable)
@@ -269,6 +269,7 @@ cmd_update()
        do
                case "$1" in
                -q|--quiet)
+                       shift
                        quiet=1
                        ;;
                -i|--init)
@@ -286,7 +287,6 @@ cmd_update()
                        break
                        ;;
                esac
-               shift
        done
 
        git ls-files --stage -- "$@" | grep '^160000 ' |