checkout: relocate --to's "no branch specified" check
[gitweb.git] / builtin / receive-pack.c
index 32fc540ef3ddfc4d1bb33ae75a0e07b555bdc441..3b8f420d04c9693419ccbdf3bc30b73cd27836e6 100644 (file)
@@ -869,7 +869,7 @@ static void run_update_post_hook(struct command *commands)
        int argc;
        const char **argv;
        struct child_process proc = CHILD_PROCESS_INIT;
-       char *hook;
+       const char *hook;
 
        hook = find_hook("post-update");
        for (argc = 0, cmd = commands; cmd; cmd = cmd->next) {