From 3bf8288c2563bfe83427c18bb10317f1dc42515e Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 7 Nov 2009 15:11:52 +0100 Subject: Don't fail when series file is missing. Create an empty patch-queue branch instead. --- examples/gbp-pq | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/gbp-pq b/examples/gbp-pq index 035412ab..96b1fe6c 100755 --- a/examples/gbp-pq +++ b/examples/gbp-pq @@ -71,15 +71,16 @@ pq_import() return 1 fi - if [ ! -r ${patches}series ]; then - echo "Found no series file at \"$patches\"." - return 1 - fi - if ! git checkout -b $pq; then echo "Cannot create patch-queue branch \"$pq\"." return 1 fi + + if [ ! -r ${patches}series ]; then + echo "Found no series file at \"$patches\". Patch-queue branch will be empty." + return 0 + fi + QUILT_PATCHES=$patches git quiltimport } -- cgit v1.2.3