]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buildpackages: also pull tags from the user ceph fork
authorLoic Dachary <ldachary@redhat.com>
Fri, 4 Mar 2016 04:48:36 +0000 (11:48 +0700)
committerLoic Dachary <ldachary@redhat.com>
Wed, 16 Mar 2016 13:36:52 +0000 (14:36 +0100)
Signed-off-by: Loic Dachary <loic@dachary.org>
tasks/buildpackages/common.sh

index 1085bc08ab5c44605ab242cab62004182e419c83..6268757ee7025a62698643d726ab8dae39d45c86 100644 (file)
@@ -33,7 +33,10 @@ function get_ceph() {
 
     test -d ceph || git clone ${git_ceph_url}
     cd ceph
-    git fetch --tags http://github.com/ceph/ceph
+    if test -d src ; then # so we don't try to fetch when using a fixture
+       git fetch --tags http://github.com/ceph/ceph
+    fi
+    git fetch --tags ${git_ceph_url}
     git checkout ${sha1}
 }