~ecs/tm

95cb618f450695312ff6849e7c6e86709e985ae9 — Ember Sawady 2 years ago 9df4fe2
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