89d39bec480ac03a6699c7b82ba4399e69c74492
[git-central.git] / scripts / create-stable
1 #!/bin/sh
2
3 # Make a root directory tree with no files in it
4 config_tree_hash=$(git mktree <<FOO
5 FOO)
6
7 # Commit the root directory tree
8 commit_hash=$(git commit-tree $config_tree_hash <<FOO
9 Initial commit on stable branch.
10 FOO)
11
12 echo "Made stable 0.0 commit $commit_hash"
13
14 # Save the commit to the stable ref for later pushing to origin
15 git update-ref refs/heads/stable "$commit_hash" 0000000000000000000000000000000000000000
16