Merge branch 'jk/unused-params-even-more'
[gitweb.git] / builtin / worktree.c
index 85a604cfe98c03d9f1c9fb88347cb8a9ece45b9f..d2a7e2f3f18ba411d065a52ac868db612de5beaa 100644 (file)
@@ -404,6 +404,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),