summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 5d7e6c3..1c680b2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,7 +18,7 @@
# along with opkbuild. If not, see <http://www.gnu.org/licenses/>.
if IN_GIT
-PACKAGE_VERSION_GIT = $$(git describe --tags --dirty | sed 's|^.*/||')
+PACKAGE_VERSION_GIT = $$(git describe --tags --dirty | sed 's|^[^/-]*[/-]||')
else
PACKAGE_VERSION_GIT = $(PACKAGE_VERSION)
endif