From a5bf892d0900cbf9949f628c3e05db599341a02c Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 12 Sep 2008 16:23:01 +0200 Subject: [PATCH] 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. --- tg-import.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.11.4.GIT