From: Junio C Hamano Date: Thu, 6 Dec 2012 21:48:43 +0000 (-0800) Subject: Meta/pushall: attempt to auto-push the tip-tag X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e311d87dfe931dd6c060985e3d691cda5526e23e;p=thirdparty%2Fgit.git Meta/pushall: attempt to auto-push the tip-tag --- diff --git a/pushall b/pushall index 4045cbd27b..c4d6e1de40 100755 --- a/pushall +++ b/pushall @@ -1,5 +1,19 @@ #!/bin/sh +case "$#" in +0) + tagged= + for branch in maint master + do + t=$(git describe --exact-match $branch 2>/dev/null) && + tagged="$tagged$t " + done + if test -n "$tagged" + then + "$0" $tagged + fi +esac + for remote in ko repo gph github2 sfjp sf.net do printf "%s: " "$remote"