author | Jay Soffian <jaysoffian@gmail.com> | |
Tue, 31 Mar 2009 16:22:11 +0000 (12:22 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 1 Apr 2009 18:10:06 +0000 (11:10 -0700) | ||
commit | 5906f54e474c6e8aabb0f6b955d446b509cde06e | |
tree | cf5a423e7fef09ae718a21140943d736849eb8de | tree | snapshot |
parent | 91286ca61af404d53d946d6c3388b24f004433d2 | commit | diff |
send-email: don't attempt to prompt if tty is closed
Attempting to prompt when the tty is closed (typically when running from
cron) is pointless and emits a warning. This patch causes ask() to
return early, squelching the warning.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Attempting to prompt when the tty is closed (typically when running from
cron) is pointless and emits a warning. This patch causes ask() to
return early, squelching the warning.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl | diff | blob | history |