Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created January 27, 2016 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlowja/e62c4d69bcd5d2a0d4bd to your computer and use it in GitHub Desktop.
Save harlowja/e62c4d69bcd5d2a0d4bd to your computer and use it in GitHub Desktop.
#!/bin/bash
set -o xtrace
set -o pipefail
set -e
cd ~/
bzr branch lp:cloud-init
cd cloud-init/
git init
bzr fast-export --plain . | git fast-import
for t in `git tag | grep "^ubuntu"`; do
echo "Removing tag $t"
git tag -d $t
done
git tag -d "trunk-karmic-merge"
rm -rf .bzr/
echo "Rebasing the stackforge branch"
cd ~/
git clone https://github.com/stackforge/cloud-init.git cloud-init-new
cd cloud-init-new/
git checkout origin/0.7.x
git checkout 0.7.x
git remote add upstream ~/cloud-init
git fetch upstream
git rebase upstream/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment