pushall: use push --follow-tags

This commit is contained in:
Junio C Hamano
2013-05-24 14:12:52 -07:00
parent dfe39c3fe1
commit 78e5eecba1

17
pushall
View File

@@ -1,23 +1,10 @@
#!/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
for remote in ko repo gph github2 sfjp sf.net
do
printf "%s: " "$remote"
git push "$remote" "$@" || exit $?
git push --follow-tags "$remote" "$@" || exit $?
done
case "$#,$*" in