From 3ea073ada141164ed2999c142439fe86a220615e Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 12 Apr 2017 13:38:02 +0200 Subject: ignore submodules in dirtiness check changed submodule sha1s should not prevent updating. Change-Id: Ibd4480bed91de2a04719c32c95a4c603eda4c44b Reviewed-by: Simon Hausmann Reviewed-by: Edward Welbourne --- init-repository | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-repository b/init-repository index 861511b9..11a75ffd 100755 --- a/init-repository +++ b/init-repository @@ -469,7 +469,7 @@ sub git_stat_one_submodule my $orig_cwd = getcwd(); chdir($submodule) or confess "chdir $submodule: $OS_ERROR"; - my @sts = qx(git status --porcelain --untracked=no); + my @sts = qx(git status --porcelain --untracked=no --ignore-submodules=all); # After a git clone --no-checkout, git status reports all files as # staged for deletion, but we still want to update the submodule. -- cgit v1.2.3