[ostree] image: Use rev-parse, not HEAD
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] image: Use rev-parse, not HEAD
- Date: Thu, 27 Oct 2011 19:45:10 +0000 (UTC)
commit cb04d99b7656900cf0ab9bcee34e02b228e5976b
Author: Colin Walters <walters verbum org>
Date: Thu Oct 27 15:44:21 2011 -0400
image: Use rev-parse, not HEAD
parallel-debian/gnomeos-make-image.sh | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/parallel-debian/gnomeos-make-image.sh b/parallel-debian/gnomeos-make-image.sh
index 190c77c..a159143 100755
--- a/parallel-debian/gnomeos-make-image.sh
+++ b/parallel-debian/gnomeos-make-image.sh
@@ -148,10 +148,11 @@ if ! test -d ${OBJ}; then
(cd ostree/gnomeos-origin; $OSTREE commit -s 'Add chroot_break' --repo=../repo --add=sbin/chroot_break)
(cd ostree;
- rev=`cat repo/HEAD`
- $OSTREE checkout --repo=repo HEAD gnomeos-${rev}
+ rev=$($OSTREE rev-parse --repo=repo master)
+ $OSTREE checkout --repo=repo ${rev} gnomeos-${rev}
$OSTREE run-triggers --repo=repo gnomeos-${rev}
- ln -s gnomeos-${rev} current)
+ ln -s gnomeos-${rev} current
+ rm -rf gnomeos-origin)
)
if test -d ${OBJ}; then
mv ${OBJ} ${OBJ}.old
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]