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 11829a94cd737b14bf8b0a8cbf4e7c9b3d9c59ba..68477f0de31cf05fd66c7f48fcfee95fa7e31bce 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"