pushall: use push --follow-tags
Junio C Hamano committed
May 24, 2013 at 14:12 UTC
78e5eecba18cf555d364ea68770a55e4eebe017d
1 file changed
+2
-15
pushall
+2
-15
@@ -1,23 +1,10 @@
1
#!/bin/sh
2
3
-case "$#" in
4
-0)
5
- tagged=
6
- for branch in maint master
7
- do
8
- t=$(git describe --exact-match $branch 2>/dev/null) &&
9
- tagged="$tagged$t "
10
- done
11
- if test -n "$tagged"
12
- then
13
- "$0" $tagged
14
- fi
15
-esac
16
-
3
+# for remote in ko repo gph github2 sfjp sf.net
4
for remote in ko repo gph github2 sfjp sf.net
5
do
6
printf "%s: " "$remote"
20
- git push "$remote" "$@" || exit $?
7
+ git push --follow-tags "$remote" "$@" || exit $?
8
done
9
10
case "$#,$*" in