]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
buildpackages: fetch tags from the official Ceph repository
authorLoic Dachary <ldachary@redhat.com>
Tue, 27 Oct 2015 15:06:46 +0000 (00:06 +0900)
committerLoic Dachary <ldachary@redhat.com>
Tue, 27 Oct 2015 15:40:58 +0000 (00:40 +0900)
A clone of Ceph is not automagically updated with the tags from the
official Ceph repository. For a pull request based on master, git
describe will use whatever tags existed at the time the clone was made,
unless the author pull them from the official Ceph repository and later
git push --tags them.

The output of git describe is used to name the packages and if the
official tags are not present, the packages will be incorrectly
named. For instance instead of 9.0.3-34 the packages could be named
0.87-8433 because the v0.87 tag is the most recent tag in the
repository. That confuses the install task that will fail with:

   'ceph version 0.87 was not installed, found 9.0.3.'

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 970a37226f884c7f109e48c90373b7fd2697f6d0)

tasks/buildpackages/common.sh

index f98ffe38e76816d4d51756c6576c5ba430c6ed5f..9091ee3cee28b4b7304db48235f360f4785855b3 100644 (file)
@@ -33,6 +33,7 @@ function get_ceph() {
 
     test -d ceph || git clone ${git_ceph_url}
     cd ceph
+    git fetch --tags http://github.com/ceph/ceph
     git checkout ${sha1}
 }