]> git.apps.os.sepia.ceph.com Git - autobuild-ceph.git/commitdiff
Remove submodule .git/config submodules for .gitmodules reimport.
authorSandon Van Ness <sandon@inktank.com>
Tue, 14 Jan 2014 00:06:26 +0000 (16:06 -0800)
committerSandon Van Ness <sandon@inktank.com>
Tue, 14 Jan 2014 00:06:26 +0000 (16:06 -0800)
When the submodules init is done it takes values from .gitmodules
and imports them into .git/config so when .gitmodules is updated
old values/URLs are sitll used. Instead remove the entries from
.git/config so they can be re-added from .gitmodules.

build-ceph-deb-native.sh
build-ceph-deb.sh
build-ceph-gcov.sh
build-ceph-notcmalloc.sh
build-ceph-rpm.sh
build-ceph.sh

index 1be961785747a7f1aef87257f6e6a3e9e89480bf..7f1952320e1f1fdd0426eb02d353f81f43fcf094 100755 (executable)
@@ -1,6 +1,12 @@
 #!/bin/sh -x
 set -e
 
+# Remove submodules from .git/config so its re-imported from .gitmodules:
+for submodule in $(git config -l | grep submodule | cut -d'=' -f1)
+do
+    git config --unset $submodule
+done
+
 # pull down submodules
 git submodule foreach 'git clean -fdx && git reset --hard'
 rm -rf ceph-object-corpus
index 5ff84462e34e2425fc9ade17a775305c391db479..9a542b4112babdca9e807cece7f05ab1c7680038 100755 (executable)
@@ -1,6 +1,12 @@
 #!/bin/sh -x
 set -e
 
+# Remove submodules from .git/config so its re-imported from .gitmodules:
+for submodule in $(git config -l | grep submodule | cut -d'=' -f1)
+do
+    git config --unset $submodule
+done
+
 # pull down submodules
 git submodule foreach 'git clean -fdx && git reset --hard'
 rm -rf ceph-object-corpus
index 77f465b047bbef6222fd617ef3ab70e0b47f0802..ebcc3307de0e7a1f43e74bebc2eef76cc6e51ca0 100755 (executable)
@@ -1,6 +1,12 @@
 #!/bin/sh -x
 set -e
 
+# Remove submodules from .git/config so its re-imported from .gitmodules:
+for submodule in $(git config -l | grep submodule | cut -d'=' -f1)
+do
+    git config --unset $submodule
+done
+
 git submodule foreach 'git clean -fdx && git reset --hard'
 rm -rf ceph-object-corpus
 rm -rf src/leveldb
index 06ff7138cde1212b0993d8fab70eb091271858da..4c31513c9c31386bb8b4302209498f1c245a2b8a 100755 (executable)
@@ -1,6 +1,12 @@
 #!/bin/sh -x
 set -e
 
+# Remove submodules from .git/config so its re-imported from .gitmodules:
+for submodule in $(git config -l | grep submodule | cut -d'=' -f1)
+do
+    git config --unset $submodule
+done
+
 # pull down submodules
 git submodule foreach 'git clean -fdx && git reset --hard'
 rm -rf ceph-object-corpus
index feefb37ac0533fb4aa6d5c1afd02b8108b474041..fd45d048e3f9f606f728c4f233dae9b7291f70ff 100755 (executable)
@@ -1,6 +1,12 @@
 #!/bin/sh -x
 set -e
 
+# Remove submodules from .git/config so its re-imported from .gitmodules:
+for submodule in $(git config -l | grep submodule | cut -d'=' -f1)
+do
+    git config --unset $submodule
+done
+
 # pull down submodules
 git submodule foreach 'git clean -fdx && git reset --hard'
 rm -rf ceph-object-corpus
index ba37c4a1af16de5248493145d54a47dffe4dc996..2c65f90af59f4b81b6f494221ced3f6070a71ef8 100755 (executable)
@@ -1,6 +1,12 @@
 #!/bin/sh -x
 set -e
 
+# Remove submodules from .git/config so its re-imported from .gitmodules:
+for submodule in $(git config -l | grep submodule | cut -d'=' -f1)
+do
+    git config --unset $submodule
+done
+
 # pull down submodules
 rm -rf ceph-object-corpus
 rm -rf src/leveldb