Changeset 2578


Ignore:
Timestamp:
Dec 5, 2009, 3:49:51 PM (15 years ago)
Author:
broder
Message:

There is no master branch. There is only prod. And dev.

But definitely no master.

Location:
trunk/scripts/git-migration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/git-migration/git-migrate-fast.sh

    r2577 r2578  
    1919
    2020sed -n 's/^create repository // p' ../rules | while read repo; do
    21     mkdir -p "$repo" && GIT_DIR="$repo" git init --bare
     21    mkdir -p "$repo" && GIT_DIR="$repo" git init --bare && GIT_DIR="$repo" git symbolic-ref HEAD refs/heads/prod
    2222done
    2323
     
    6161git fetch -t git://github.com/ebroder/python-routefs.git
    6262git branch -f upstream 1.0.1
    63 git branch -f master 1.0.1-1
     63git branch -f prod 1.0.1-1
    6464popd
     65
     66for r in $(ls packages); do
     67    pushd "packages/$r"
     68    git branch dev prod
     69    popd
     70done
    6571
    6672mkdir packages.git
    6773pushd packages.git
    6874git init --bare
     75git symbolic-ref HEAD refs/heads/prod
    6976(
    7077    echo 'commit refs/heads/prod'
     
    7683    for r in $(ls ../packages); do
    7784        pushd "../packages/$r" &>/dev/null
    78         commit="$(git rev-parse refs/heads/master)"
     85        commit="$(git rev-parse refs/heads/prod)"
    7986        popd &>/dev/null
    8087
  • trunk/scripts/git-migration/rules.mako

    r2471 r2578  
    2727        if 'merge' in packages[package]:
    2828            return get_branch(packages[package]['merge'])
    29         return 'master'
     29        return 'prod'
    3030
    3131    def get_tag_prefix(package):
Note: See TracChangeset for help on using the changeset viewer.