Commit 8dcf39c4 authored by Committed by Junio C Hamano
Prevent bogus paths from being added to the index.
With this one, it's now a fatal error to try to add a pathname that cannot be added with "git add", i.e. [[email protected] git]$ git add .git/config fatal: unable to add .git/config to index and [[email protected] git]$ git add foo/../bar fatal: unable to add foo/../bar to index instead of the old "Ignoring path xyz" warning that would end up silently succeeding on any other paths. Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
Showing with 67 additions and 64 deletions