Skip to content

Commit c38f85d

Browse files
add sudo to all git commands
1 parent 564c782 commit c38f85d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

travis-ci/deploy2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ sudo git config --global push.default simple
99
export GIT_TAG=V2.$YEAR-$MONTH.$TRAVIS_BUILD_NUMBER
1010
sudo git fetch --tags
1111
msg="Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
12-
if git tag $GIT_TAG -a -m "$msg" 2>/dev/null; then
12+
if sudo git tag $GIT_TAG -a -m "$msg" 2>/dev/null; then
1313
sudo git tag $GIT_TAG -a -m "Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
14-
sudo git push origin master && git push origin master --tags
14+
sudo git push origin master && sudo git push origin master --tags
1515
ls -aR
1616
else echo Tag already exists!; fi
1717

0 commit comments

Comments
 (0)