pkg.sh: upload_pkg(): Don't ignore git push errors
After release, pkg.sh pushes the changes to VERSION and HASH upstream. Failures are masked, though, propagate them.
Unclear what motivated masking the error. Tracking that down with git blame leads to build-package.sh, which was inherited from ytools, where the change was introduced 2014 with the trust-inspiring comment:
attempted fix for error during commit of version files in build-package.sh
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
5d6cd03bb2
commit
57a50381a2
1 changed files with 1 additions and 1 deletions
|
|
@ -659,7 +659,7 @@ upload_pkg()
|
||||||
scm_commit -m "Release $v@`platform`" $TOPDIR/RELEASES $TOPDIR/HASH
|
scm_commit -m "Release $v@`platform`" $TOPDIR/RELEASES $TOPDIR/HASH
|
||||||
if [ "$SCM" = git ]; then
|
if [ "$SCM" = git ]; then
|
||||||
# Don't use extra options, they might contain -l
|
# Don't use extra options, they might contain -l
|
||||||
JW_PKG_SSH_EXTRA_OPTS="" git push || true
|
JW_PKG_SSH_EXTRA_OPTS="" git push || fatal "Failed to push changes to RELEASES and HASH"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue