Changeset 2576 for trunk/scripts
- Timestamp:
- Dec 5, 2009, 3:18:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-migration/git-migrate-fast.sh
r2357 r2576 64 64 popd 65 65 66 mkdir packages.git 67 pushd packages.git 68 git init --bare 69 ( 70 echo 'commit refs/heads/prod' 71 echo 'mark :1' 72 echo 'committer Invirt Git Import <invirt@mit.edu> now' 73 echo 'data <<EOF' 74 echo 'Initial superrepo creation.' 75 echo 'EOF' 76 for r in $(ls ../packages); do 77 pushd "../packages/$r" &>/dev/null 78 commit="$(git rev-parse refs/heads/master)" 79 popd &>/dev/null 80 81 echo "M 160000 $commit ${r%.git}" 82 done 83 84 echo 'M 100644 inline .gitmodules' 85 echo 'data <<EOF' 86 for r in $(ls ../packages); do 87 r="${r%.git}" 88 printf '[submodule "%s"]\n' "$r" 89 printf '\tpath = %s\n' "$r" 90 printf '\turl = git://invirt.mit.edu/packages/%s.git\n' "$r" 91 done 92 echo 'EOF' 93 94 echo 'reset refs/heads/dev' 95 echo 'from :1' 96 97 echo 'reset HEAD' 98 echo 'from :1' 99 ) | git fast-import --date-format=now 100 popd 101 66 102 echo 67 103 echo 'The Git migration was successful.'
Note: See TracChangeset
for help on using the changeset viewer.