]> git.ozlabs.org Git - next-scripts/commitdiff
Add the new tree to the history branch
authorStephen Rothwell <sfr@canb.auug.org.au>
Sun, 6 Apr 2008 23:54:22 +0000 (09:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 6 Apr 2008 23:54:22 +0000 (09:54 +1000)
make_tree_file

index 2a5a980992f6760055b503ddb54cfd75e076082b..da572445539260e94c454b985c38acb5b84ec57d 100755 (executable)
@@ -27,4 +27,8 @@ git commit -s -v -a -m "Add linux-next specific files"
 git tag "next-$d"
 git update-ref refs/heads/stable refs/remotes/origin/master
 
+# Stitch the new tree into the history branch
+new_ref=$(echo "next-$d" | git commit-tree 'HEAD^{tree}' -p history -p HEAD)
+git update-ref -m "next-$d" refs/heads/history $new_ref
+
 exit 0