Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 78e5eec

Browse files
committed
pushall: use push --follow-tags
1 parent dfe39c3 commit 78e5eec

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

pushall

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
#!/bin/sh
22

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
174
for remote in ko repo gph github2 sfjp sf.net
185
do
196
printf "%s: " "$remote"
20-
git push "$remote" "$@" || exit $?
7+
git push --follow-tags "$remote" "$@" || exit $?
218
done
229

2310
case "$#,$*" in

0 commit comments

Comments
 (0)