diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-07-22 11:55:49 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-07-22 12:13:20 +0200 |
commit | 27925032cd5aec8805185679e01c687c40bbd617 (patch) | |
tree | 595b64024c1f7e1ca9f74cd2eb00602eb6c77d7e /g | |
parent | 1b1037767adf96c23848a7ac195023e277086e54 (diff) |
g: ignore submodule changes
Change-Id: I6125dd018615bc7aa18bacc838ea602ccb0fabc1
Diffstat (limited to 'g')
-rwxr-xr-x | g | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -90,6 +90,14 @@ local hook for repo in ${SUBMODULES_ALL?} ; do refresh_submodule_hooks $repo done + # In our workflow, it's always gerrit that does the submodule updates, so + # better ignoring them to avoid accidentally including those changes in our + # commits. + # 'git submodule status' can be still used to see if a submodule has such + # changes. + for repo in ${SUBMODULES_CONFIGURED?} ; do + git config submodule.$repo.ignore all + done popd > /dev/null } |