mirror of
https://github.com/ceph/ceph
synced 2025-01-11 05:29:51 +00:00
buildpackages: branches are found in refs/remotes/origin
Note in refs/heads which is populated for local branches only and not after a fresh clone. Signed-off-by: Loic Dachary <loic@dachary.org>
This commit is contained in:
parent
e54c916891
commit
810caaf55f
@ -136,7 +136,7 @@ EOF
|
||||
echo $sha1 > $sha1_dir/sha1
|
||||
ref_dir=$codename/$base/ref
|
||||
mkdir -p $ref_dir
|
||||
( cd ${ceph_dir} ; git for-each-ref refs/tags/** refs/heads/** ) | grep $sha1 | while read sha1 type ref ; do
|
||||
( cd ${ceph_dir} ; git for-each-ref refs/tags/** refs/remotes/origin/** ) | grep $sha1 | while read sha1 type ref ; do
|
||||
base_ref=$(basename $ref)
|
||||
( cd $ref_dir ; ln -sf ../sha1/$sha1 $base_ref )
|
||||
done
|
||||
|
@ -233,7 +233,7 @@ function build_rpm_repo() {
|
||||
|
||||
ref_dir=${buildarea}/../$codename/$base/ref
|
||||
mkdir -p $ref_dir
|
||||
( cd ${ceph_dir} ; git for-each-ref refs/tags/** refs/heads/** ) | grep $sha1 | while read sha1 type ref ; do
|
||||
( cd ${ceph_dir} ; git for-each-ref refs/tags/** refs/remotes/origin/** ) | grep $sha1 | while read sha1 type ref ; do
|
||||
base_ref=$(basename $ref)
|
||||
( cd $ref_dir ; ln -sf ../sha1/$sha1 $base_ref )
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user