]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/docker-test-helper.sh: move "cp .git/HEAD" out of loop 22978/head
authorKefu Chai <kchai@redhat.com>
Wed, 11 Jul 2018 04:27:40 +0000 (12:27 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 11 Jul 2018 04:28:03 +0000 (12:28 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/docker-test-helper.sh

index d3f58300d9a082006c6d3a5135a61db0e8f718e4..d13926b7a2cb880cf97b267de72c8a205af2e797 100755 (executable)
@@ -90,8 +90,8 @@ function setup_downstream() {
                        ;;
                esac
                ln -s "$upstream/.git/$x" "$downstream/.git/$x"
-                cp "$upstream/.git/HEAD" "$downstream/.git/HEAD"
             done
+            cp "$upstream/.git/HEAD" "$downstream/.git/HEAD"
         fi
         cd $downstream
         git reset --hard $ref || return 1