chiark / gitweb /
tg import: Check out new files as we go
authorPetr Baudis <pasky@suse.cz>
Fri, 12 Sep 2008 14:23:01 +0000 (16:23 +0200)
committerPetr Baudis <pasky@suse.cz>
Fri, 12 Sep 2008 14:23:07 +0000 (16:23 +0200)
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

index 11829a9..68477f0 100644 (file)
@@ -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"