X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=tg-import.sh;h=799efc9a8395228604e1ccf94cc66a0c36144ec9;hb=2986273479a7303a5b21c238182e1df51be2b3eb;hp=11829a94cd737b14bf8b0a8cbf4e7c9b3d9c59ba;hpb=fd2a33007097052ddf1d3dba638e7731a6946786;p=topgit.git diff --git a/tg-import.sh b/tg-import.sh index 11829a9..799efc9 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 cherry-pick --no-commit "$commit" get_commit_msg "$commit" > .topmsg git add -f .topmsg .topdeps git commit -C "$commit"