Make update: Ignore submodules
The previous change in the .gitmodules made it so the `make update` rejects to do its thing because it now sees changes in the submodules and rejected to update, thinking there are unstaged changes. Ignore the submodule changes, bringing the old behavior closer to what it was.
This commit is contained in:
parent
aab707ab70
commit
43f308f216
|
@ -170,7 +170,7 @@ def git_update_skip(args: argparse.Namespace, check_remote_exists: bool = True)
|
|||
return "rebase or merge in progress, complete it first"
|
||||
|
||||
# Abort if uncommitted changes.
|
||||
changes = check_output([args.git_command, 'status', '--porcelain', '--untracked-files=no'])
|
||||
changes = check_output([args.git_command, 'status', '--porcelain', '--untracked-files=no', '--ignore-submodules'])
|
||||
if len(changes) != 0:
|
||||
return "you have unstaged changes"
|
||||
|
||||
|
|
Loading…
Reference in New Issue