OSDN Git Service

scripts: check if .git exists before checking submodule status
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 26 Apr 2022 13:06:49 +0000 (14:06 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 27 Oct 2022 10:54:37 +0000 (11:54 +0100)
commitdd84a906e061550daaedea6ce88762f1839253ab
treef0115aa9d7e8d65620e29ca59528d49bd3bbc9fa
parent73422d9524376526ab5950b3be3098901cd605d6
scripts: check if .git exists before checking submodule status

Currently we check status of each submodule, before actually checking
if we're in a git repo. These status commands will all fail, but we
are hiding their output so we don't see it currently.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
scripts/git-submodule.sh