X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=blobdiff_plain;f=all;h=7ec02158e7c99a8461c4c13ecb8d3a79a4cb51f3;hp=e18ca0d81bf2d961891ddaa81da31f9e82c221fa;hb=f49f350f054e8a7d86765239e2b2a2337c2da9e7;hpb=3024963186e170b08774558b2643780198d13381;ds=sidebyside diff --git a/all b/all index e18ca0d8..7ec02158 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