chiark / gitweb /
control: depend on git | git-core
[topgit.git] / tg-import.sh
index 424f51847ac750ee518e5d66b620cb900033a095..a8d3be5b3098d73c9b1dabfc9e1d509ae533a533 100644 (file)
@@ -72,9 +72,12 @@ process_commit()
        info "---- Importing $commit to $branch_name"
        tg create "$branch_name" $basedep
        basedep=
-       git cherry-pick --no-commit "$commit"
        get_commit_msg "$commit" > .topmsg
        git add -f .topmsg .topdeps
+       if ! git cherry-pick --no-commit "$commit"; then
+               info "The commit will also finish the import of this patch."
+               exit 2
+       fi
        git commit -C "$commit"
        info "++++ Importing $commit finished"
 }
@@ -113,3 +116,5 @@ do
                esac
        done
 done
+
+# vim:noet