]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/ls-tree.c
Merge branch 'tl/ls-tree-oid-only'
[thirdparty/git.git] / builtin / ls-tree.c
index 44a91cf9d05564f26d4a5fd18ab80d4f42e4a546..5dac9ee5b9d4e593dc569294edc5f74673a920db 100644 (file)
@@ -364,7 +364,7 @@ int cmd_ls_tree(int argc, const char **argv, const char *prefix)
 
        git_config(git_default_config, NULL);
        ls_tree_prefix = prefix;
-       if (prefix && *prefix)
+       if (prefix)
                chomp_prefix = strlen(prefix);
 
        argc = parse_options(argc, argv, prefix, ls_tree_options,