From 5e145c1a2f2a650575dc7481be37f5020853a6fd Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Fri, 4 Mar 2016 11:48:36 +0700 Subject: [PATCH] buildpackages: also pull tags from the user ceph fork Signed-off-by: Loic Dachary --- tasks/buildpackages/common.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/buildpackages/common.sh b/tasks/buildpackages/common.sh index 1085bc08ab5..6268757ee70 100644 --- a/tasks/buildpackages/common.sh +++ b/tasks/buildpackages/common.sh @@ -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} }