author | Clemens Buchacher <drizzd@aon.at> | |
Sat, 22 May 2010 12:21:27 +0000 (14:21 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 25 May 2010 16:28:51 +0000 (09:28 -0700) | ||
commit | 4e1f87959c76455f0092a7c82aee78df60533ae5 | |
tree | f8e943d08b281639ee0b1c4de4bc33c0d4d417d5 | tree | snapshot |
parent | c8b296450e5148c576697ea4709072b7855aacd5 | commit | diff |
test get_git_work_tree() return value for NULL
If we are in a git directory, get_git_work_tree() can return NULL.
While trying to determine whether or not the given paths are outside
the work tree, the following command would read from it anyways and
trigger a segmentation fault.
git diff / /
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If we are in a git directory, get_git_work_tree() can return NULL.
While trying to determine whether or not the given paths are outside
the work tree, the following command would read from it anyways and
trigger a segmentation fault.
git diff / /
Signed-off-by: Clemens Buchacher <drizzd@aon.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-no-index.c | diff | blob | history |