git svn: Don't create empty directories whose parents were deleted
[gitweb.git] / builtin-check-ref-format.c
index 513f13463844388699334da00d13c5f8dd90b286..b106c65d80dfc8fe794d46e34ea1ff78b04f3056 100644 (file)
@@ -35,6 +35,9 @@ static void collapse_slashes(char *dst, const char *src)
 
 int cmd_check_ref_format(int argc, const char **argv, const char *prefix)
 {
+       if (argc == 2 && !strcmp(argv[1], "-h"))
+               usage(builtin_check_ref_format_usage);
+
        if (argc == 3 && !strcmp(argv[1], "--branch")) {
                struct strbuf sb = STRBUF_INIT;