From: Petr Baudis Date: Fri, 12 Sep 2008 14:23:01 +0000 (+0200) Subject: tg import: Check out new files as we go X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=a5bf892d0900cbf9949f628c3e05db599341a02c tg import: Check out new files as we go This causes a little overhead, but silences confusing git checkout status messages and makes sure we end up with sensible working tree after the whole tg import is over. --- diff --git a/tg-import.sh b/tg-import.sh index 11829a9..68477f0 100644 --- a/tg-import.sh +++ b/tg-import.sh @@ -61,7 +61,7 @@ process_commit() branch_name=$(get_branch_name "$commit") info "---- Importing $commit to $branch_prefix$branch_name" tg create "$branch_prefix""$branch_name" - git read-tree "$commit" + git read-tree -u -m "$commit" get_commit_msg "$commit" > .topmsg git add -f .topmsg .topdeps git commit -C "$commit"