author | Fredrik Gustafsson <iveqy@iveqy.com> | |
Mon, 15 Aug 2011 21:17:46 +0000 (23:17 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 16 Aug 2011 18:04:31 +0000 (11:04 -0700) | ||
commit | abc06822af57347d35c0cd64b67e1faeb5b65c71 | |
tree | 6a6484a355e2e5b0a8b7b839c0e3ea6b1bd67457 | tree | snapshot |
parent | e7a85be3cfc4ee017f59f1d1f8ceb63d7c88c9c8 | commit | diff |
rev-parse: add option --resolve-git-dir <path>
Check if <path> is a valid git-dir or a valid git-file that points
to a valid git-dir.
We want tests to be independent from the fact that a git-dir may
be a git-file. Thus we changed tests to use this feature.
Signed-off-by: Fredrik Gustafsson <iveqy@iveqy.com>
Mentored-by: Jens Lehmann <Jens.Lehmann@web.de>
Mentored-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Check if <path> is a valid git-dir or a valid git-file that points
to a valid git-dir.
We want tests to be independent from the fact that a git-dir may
be a git-file. Thus we changed tests to use this feature.
Signed-off-by: Fredrik Gustafsson <iveqy@iveqy.com>
Mentored-by: Jens Lehmann <Jens.Lehmann@web.de>
Mentored-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>