add: don't complain when adding empty project root
This behavior was added in 07d7bedd (add: don't complain when adding empty project root - 2009-04-28) then broken by 84b8b5d1 (remove match_pathspec() in favor of match_pathspec_depth() - 2013-07-14). Reinstate it. Noticed-by: NThomas Ferris Nicolaisen <tfnico@gmail.com> Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com> Reviewed-by: NJonathan Nieder <jrnieder@gmail.com> Signed-off-by: NJunio C Hamano <gitster@pobox.com>
Showing
想要评论请 注册 或 登录