Skip to content

Commit

Permalink
Check for remote ubuntu branch, and delete local ubuntu before bumping
Browse files Browse the repository at this point in the history
Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
  • Loading branch information
Mike McClurg committed Dec 14, 2011
1 parent 06efdda commit a1b8abb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kronos-tools/create-ubuntu-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ git checkout master
git fetch origin debian:debian

# Does ubuntu branch exist? Check it out and exit.
if [ `git branch | grep "ubuntu$"` ]; then
if [ `git branch -a | grep "remotes/origin/ubuntu$"` ]; then
git checkout ubuntu
exit 0
fi

# Ubuntu branch doesn't exist. Create it from debian and bump changelog.
# Ubuntu branch doesn't exist on remote. Delete any local ubuntu branch, create
# it from debian branch, and bump changelog.
git branch -D ubuntu || true
git branch ubuntu debian
git checkout ubuntu

Expand Down

0 comments on commit a1b8abb

Please sign in to comment.