replacing --quiet option of git-show with the more reliable -s option

This commit is contained in:
Patrik Willard 2011-07-07 10:27:49 +02:00 committed by p4bl0
parent 5dfb982bdc
commit bcb998c65e
1 changed files with 2 additions and 2 deletions

View File

@ -90,11 +90,11 @@ get_article_content() {
}
get_commit_info() {
git show --quiet --format="$1" "$2"
git show -s --format="$1" "$2"
}
get_commit_body() {
tmp=`mktemp`
git show --quiet --format="%b" "$1" > "$tmp"
git show -s --format="%b" "$1" > "$tmp"
if [ "`cat \"$tmp\" | sed \"/^$/d\" | wc -l`" != "0" ]; then
echo "$tmp"
fi