[OS-BUILD PATCHv5 7/26] Revert "[redhat] self-test/egit.sh"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ben Crocker <bcrocker@xxxxxxxxxx>

This is not what we're after.

This reverts commit 69f0bb9907ef8293c3b37a90cf437fad074d5dc1.
---
 redhat/self-test/egit.sh | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git a/redhat/self-test/egit.sh b/redhat/self-test/egit.sh
index 068d486e4993..b998f868a314 100755
--- a/redhat/self-test/egit.sh
+++ b/redhat/self-test/egit.sh
@@ -7,22 +7,10 @@ case $arg in
         if [ -n "$EGIT_OVERRIDE_DESCRIBE" ]
         then
             # Should be a version, e.g. v5.9-rc8 or v5.9-rc7-1449-g57b6fb86b0ac
-            version="$EGIT_OVERRIDE_DESCRIBE"
+            echo "$EGIT_OVERRIDE_DESCRIBE"
         else
-            version=$(git describe "$@")
+            git describe "$@"
         fi
-        va=(${version//-/ })
-        v=${va[0]}
-        r=${va[1]}
-        if [ "${r/rc/}" != "${r}" ]     # Quotes are crucial here
-        then
-            # vV.P-rcN-stuff => vV.P-rcN
-            v="$v-$r"
-        else
-            # Keep vV.P-N-hash
-            v="$version"
-        fi
-        echo "$v"
         ;;
     merge-base )
         if [ -n "$EGIT_OVERRIDE_MERGE_BASE" ]
-- 
GitLab
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux