author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Thu, 3 Mar 2011 12:34:51 +0000 (19:34 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 3 Mar 2011 23:45:10 +0000 (15:45 -0800) | ||
commit | b31d20227a4e3c71cf545d2142996e27cacadcec | |
tree | 876ce19ac188c7b2a57ee698b645f05fed754839 | tree | snapshot |
parent | ec48d4bb7f3ca1429809500eae2867fdbcda3338 | commit | diff |
init: remove unnecessary check
git_dir must always be non-NULL so "if (git_dir)" is unnecessary.
Before this code, if git_dir == NULL, it will default to
DEFAULT_GIT_DIR_ENVIRONMENT.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git_dir must always be non-NULL so "if (git_dir)" is unnecessary.
Before this code, if git_dir == NULL, it will default to
DEFAULT_GIT_DIR_ENVIRONMENT.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/init-db.c | diff | blob | history |