Convert to use quiet option when available

A minor fix that eliminates usage of "2>/dev/null" when --quiet or
-q has already been implemented.

Signed-off-by: Dan Loewenherz <daniel.loewenherz@yale.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Dan Loewenherz
2009-04-22 21:46:02 -04:00
committed by Junio C Hamano
parent b18cc5a3b2
commit 7bd93c1c62
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
# git-ls-remote could be called from outside a git managed repository;
# this would fail in that case and would issue an error message.
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null) || :;
GIT_DIR=$(git rev-parse -q --git-dir) || :;
get_data_source () {
case "$1" in