Merge branch 'mm/verify-filename-fix' into maint
"git diff COPYING HEAD:COPYING" gave a nonsense error message that claimed that the treeish HEAD did not have COPYING in it. * mm/verify-filename-fix: verify_filename(): ask the caller to chose the kind of diagnosis sha1_name: do not trigger detailed diagnosis for file arguments
This commit is contained in:
@ -1781,7 +1781,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
|
||||
* but the latter we have checked in the main loop.
|
||||
*/
|
||||
for (j = i; j < argc; j++)
|
||||
verify_filename(revs->prefix, argv[j]);
|
||||
verify_filename(revs->prefix, argv[j], j == i);
|
||||
|
||||
append_prune_data(&prune_data, argv + i);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user