author | Jon Seymour <jon.seymour@gmail.com> | |
Sat, 21 Aug 2010 04:48:05 +0000 (14:48 +1000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 22 Aug 2010 06:51:21 +0000 (23:51 -0700) | ||
commit | b0f0ecd97924ee775e7f3b29366133448f4f8e15 | |
tree | 113c1e778647679009ac7987c8f5471ae1a72728 | tree | snapshot |
parent | ef763129d105ff2b0501da7cd2ff71e99c89b477 | commit | diff |
detached-stash: work around git rev-parse failure to detect bad log refs
This commit is required because git rev-parse in 1.7.2 does not correctly
indicate invalid log references using a non-zero status code.
We use a proxy for the condition (non-empty error output) as
a substitute. This commit can be reverted when, and if, rev-parse
is fixed to indicate invalid log references with a status code.
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is required because git rev-parse in 1.7.2 does not correctly
indicate invalid log references using a non-zero status code.
We use a proxy for the condition (non-empty error output) as
a substitute. This commit can be reverted when, and if, rev-parse
is fixed to indicate invalid log references with a status code.
Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh | diff | blob | history |