Signed-off-by: Matt Darfeuille <matd...@gmail.com>
---
 build/release | 38 ++++++++++++++++++--------------------
 1 file changed, 18 insertions(+), 20 deletions(-)

diff --git a/build/release b/build/release
index 0fe42bd4..85e7aef3 100755
--- a/build/release
+++ b/build/release
@@ -146,27 +146,25 @@ checkout_branch_auto_func()
 
 create_tag() # $1 = path of repository, $2 = object
 {
-    if check_working_tree $1; then
-        if [ -n "$2" ]; then
-            echo "Creating tag $VERSION in ${1}/.git, object: ${2}..."
-
-            if [ -n "$MESSAGE" ]; then
-                git --git-dir=${1}/.git tag -s $VERSION -m "$MESSAGE" $2
-                [ $? -ne 0 ] && fatal_error "Failed to create tag $VERSION in 
${1}/.git."
-            else
-                git --git-dir=${1}/.git tag -s $VERSION $2
-                [ $? -ne 0 ] && fatal_error "Failed to create tag $VERSION in 
${1}/.git."
-            fi
+    if [ -n "$2" ]; then
+        echo "Creating tag $VERSION in ${1}/.git, object: ${2}..."
+
+        if [ -n "$MESSAGE" ]; then
+            git --git-dir=${1}/.git tag -s $VERSION -m "$MESSAGE" $2
+            [ $? -ne 0 ] && fatal_error "Failed to create tag $VERSION in 
${1}/.git."
+        else
+            git --git-dir=${1}/.git tag -s $VERSION $2
+            [ $? -ne 0 ] && fatal_error "Failed to create tag $VERSION in 
${1}/.git."
+        fi
+    else
+        echo "Creating tag $VERSION in ${1}/.git..."
+
+        if [ -n "$MESSAGE" ]; then
+            git --git-dir=${1}/.git tag -s $VERSION -m "$MESSAGE"
+            [ $? -ne 0 ] && fatal_error "Failed to create tag $VERSION in 
${1}/.git."
         else
-            echo "Creating tag $VERSION in ${1}/.git..."
-
-            if [ -n "$MESSAGE" ]; then
-                git --git-dir=${1}/.git tag -s $VERSION -m "$MESSAGE"
-                [ $? -ne 0 ] && fatal_error "Failed to create tag $VERSION in 
${1}/.git."
-            else
-                git --git-dir=${1}/.git tag -s $VERSION
-                [ $? -ne 0 ] && fatal_error "Failed to create tag $VERSION in 
${1}/.git."
-            fi
+            git --git-dir=${1}/.git tag -s $VERSION
+            [ $? -ne 0 ] && fatal_error "Failed to create tag $VERSION in 
${1}/.git."
         fi
     fi
 }
-- 
2.17.0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Shorewall-devel mailing list
Shorewall-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to