rebase: warn if state directory cannot be removed
[gitweb.git] / builtin / worktree.c
index 3f9907fcc994d248ba604509f6feb5bdc0499329..6cc094a453806308442d054a7d1c073ecf18b87b 100644 (file)
@@ -402,6 +402,7 @@ static int add_worktree(const char *path, const char *refname,
                        cp.dir = path;
                        cp.env = env;
                        cp.argv = NULL;
+                       cp.trace2_hook_name = "post-checkout";
                        argv_array_pushl(&cp.args, absolute_path(hook),
                                         oid_to_hex(&null_oid),
                                         oid_to_hex(&commit->object.oid),