From f49f350f054e8a7d86765239e2b2a2337c2da9e7 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 22 Jun 2010 17:33:56 +0200 Subject: [PATCH] even prettier --- all | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/all b/all index e18ca0d..7ec0215 100755 --- a/all +++ b/all @@ -405,8 +405,10 @@ case "$cmd" in upstream="`repobranch "$d"`" fi logdata=`git log --color "$upstream".."$r"` - if yesno "Push \"$r\" in $dv?" 'echo "$logdata" | less -r'; then - verbose git push "$rem" HEAD + if [ -n "$logdata" ]; then + if yesno "Push \"$r\" in $dv?" 'echo "$logdata" | less -r'; then + verbose git push "$rem" HEAD + fi fi if [ x"$submit" = x"-s" ]; then case "$r" in