~ecs/tm

13089d0c53a3b3a7ccd8ccae9abdaa524d24f63b — Eyal Sawady 12 days ago 89a0ece
init: use commit instead of commit-tree
1 files changed, 1 insertions(+), 3 deletions(-)

M tm-init
M tm-init => tm-init +1 -3
@@ 9,7 9,5 @@ mkdir -p -- "$TM_DIR/objects" "$TM_DIR/refs"
\.tm(/.*)?$
\.git(/.*)?$
EOF
[ -e "$TM_DIR/refs/index" ] || echo "Initial commit" \
	| tm commit-tree "$(tm insert "$TM_WS")" 2>/dev/null \
	>"$TM_DIR/refs/index"
[ -e "$TM_DIR/refs/index" ] || echo "Initial commit" | tm commit
[ -e "$TM_DIR/refs/HEAD" ] || tm update-ref HEAD index >/dev/null