From: Sandon Van Ness Date: Thu, 16 Jan 2014 01:05:15 +0000 (-0800) Subject: Use more proper git method instead of shell fugliness. X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fheads%2Fwip-sandon;p=autobuild-ceph.git Use more proper git method instead of shell fugliness. Signed-off-by: Sandon Van Ness --- diff --git a/build-ceph-deb-native.sh b/build-ceph-deb-native.sh index b972479..f212ea9 100755 --- a/build-ceph-deb-native.sh +++ b/build-ceph-deb-native.sh @@ -2,7 +2,7 @@ set -e # Remove submodules from .git/config so its re-imported from .gitmodules: -for submodule in $(git config -l | grep submodule | cut -d'.' -f1-2) +for submodule in $(git submodule -q foreach 'echo submodule.$name') do git config --remove-section $submodule done diff --git a/build-ceph-deb.sh b/build-ceph-deb.sh index 4de28be..f9c210f 100755 --- a/build-ceph-deb.sh +++ b/build-ceph-deb.sh @@ -2,7 +2,7 @@ set -e # Remove submodules from .git/config so its re-imported from .gitmodules: -for submodule in $(git config -l | grep submodule | cut -d'.' -f1-2) +for submodule in $(git submodule -q foreach 'echo submodule.$name') do git config --remove-section $submodule done diff --git a/build-ceph-gcov.sh b/build-ceph-gcov.sh index 0ea2c4e..9598374 100755 --- a/build-ceph-gcov.sh +++ b/build-ceph-gcov.sh @@ -2,7 +2,7 @@ set -e # Remove submodules from .git/config so its re-imported from .gitmodules: -for submodule in $(git config -l | grep submodule | cut -d'.' -f1-2) +for submodule in $(git submodule -q foreach 'echo submodule.$name') do git config --remove-section $submodule done diff --git a/build-ceph-notcmalloc.sh b/build-ceph-notcmalloc.sh index 106225d..f03dbbe 100755 --- a/build-ceph-notcmalloc.sh +++ b/build-ceph-notcmalloc.sh @@ -2,7 +2,7 @@ set -e # Remove submodules from .git/config so its re-imported from .gitmodules: -for submodule in $(git config -l | grep submodule | cut -d'.' -f1-2) +for submodule in $(git submodule -q foreach 'echo submodule.$name') do git config --remove-section $submodule done diff --git a/build-ceph-rpm.sh b/build-ceph-rpm.sh index ec1f43e..e601135 100755 --- a/build-ceph-rpm.sh +++ b/build-ceph-rpm.sh @@ -2,7 +2,7 @@ set -e # Remove submodules from .git/config so its re-imported from .gitmodules: -for submodule in $(git config -l | grep submodule | cut -d'.' -f1-2) +for submodule in $(git submodule -q foreach 'echo submodule.$name') do git config --remove-section $submodule done diff --git a/build-ceph.sh b/build-ceph.sh index 0165ee8..4a8d0b2 100755 --- a/build-ceph.sh +++ b/build-ceph.sh @@ -2,7 +2,7 @@ set -e # Remove submodules from .git/config so its re-imported from .gitmodules: -for submodule in $(git config -l | grep submodule | cut -d'.' -f1-2) +for submodule in $(git submodule -q foreach 'echo submodule.$name') do git config --remove-section $submodule done