This reverts commit e31ff7baf672426b4ad5d3c60505e7ee3e2a2af3.
---
build/release | 22 ++++++----------------
1 file changed, 6 insertions(+), 16 deletions(-)
diff --git a/build/release b/build/release
index ea862a33..8c6fb52d 100755
--- a/build/release
+++ b/build/release
@@ -166,23 +166,13 @@ push_command_func() # $1 = Path of repository, $2 =
remote, $3 = branch
if [ -n "$3" ]; then
echo "Pushing branch $3 from ${1}/.git to ${2}..."
- if git --git-dir=${1}/.git --work-tree=$1 ls-remote --heads --exit-code
--quiet $2 refs/heads/$3 1> /dev/null; then
- git --git-dir=${1}/.git --work-tree=$1 push --quiet --follow-tags
$2 $3
- [ $? -ne 0 ] && fatal_error "Failed to push branch $3 from
${1}/.git to ${2}."
- else
- git --git-dir=${1}/.git --work-tree=$1 push --quiet --follow-tags
-set-upstream $2 $3
- [ $? -ne 0 ] && fatal_error "Failed to push branch $3 from
${1}/.git to ${2}."
- fi
+ git --git-dir=${1}/.git --work-tree=$1 push --quiet --follow-tags $2 $3
+ [ $? -ne 0 ] && fatal_error "Failed to push branch $3 from ${1}/.git
to ${2}."
else
- echo "Pushing checked out branch (${BASEVERSION}) from ${1}/.git to
${2}..."
-
- if git --git-dir=${1}/.git --work-tree=$1 ls-remote --heads --exit-code
--quiet $2 refs/heads/$BASEVERSION 1> /dev/null; then
- git --git-dir=${1}/.git --work-tree=$1 push --quiet --follow-tags $2
- [ $? -ne 0 ] && fatal_error "Failed to push checked out branch from
${1}/.git to ${2}."
- else
- git --git-dir=${1}/.git --work-tree=$1 push --quiet --follow-tags
--set-upstream $2 $BASEVERSION
- [ $? -ne 0 ] && fatal_error "Failed to push checked out branch
(${BASEVERSION}) from ${1}/.git to ${2}."
- fi
+ echo "Pushing checked out branch from ${1}/.git to ${2}..."
+
+ git --git-dir=${1}/.git --work-tree=$1 push --quiet --follow-tags $2
+ [ $? -ne 0 ] && fatal_error "Failed to push checked out branch from
${1}/.git to ${2}."
fi
}
--
2.11.0
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel