From afb2b22095cbfbf5aeb04aefc224e0bb1bf21919 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 10 Jan 2012 16:05:26 +0100 Subject: update to HEAD by default --- bin/updatebuildmain | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/updatebuildmain') diff --git a/bin/updatebuildmain b/bin/updatebuildmain index f4f4917..1aca5e1 100755 --- a/bin/updatebuildmain +++ b/bin/updatebuildmain @@ -20,7 +20,7 @@ set -e GITPROJECT=$(basename $(pwd)) -REF=$1 +REF=${1-HEAD} # we need to be within a working copy (base folder) and we need a !!! test -z $1 || test -d ./.git || { @@ -30,5 +30,6 @@ test -z $1 || test -d ./.git || { } # update the build-main branch with our newest blessed reference +git branch -D build-main &>/dev/null || true git branch build-main &>/dev/null || true git push origin $REF:build-main -- cgit v1.2.3