3 # Creates a separate DAG in the repo to merge stable into.
5 # See the other docs about why this is a good idea.
8 # Make a root directory tree with no files in it
9 config_tree_hash=$(git mktree <<FOO
12 # Commit the root directory tree
13 commit_hash=$(git commit-tree $config_tree_hash <<FOO
14 Initial commit on stable branch.
17 echo "Made stable 0.0 commit $commit_hash"
19 # Save the commit to the stable ref for later pushing to origin
20 git update-ref refs/heads/stable "$commit_hash" 0000000000000000000000000000000000000000