From 719b586771b462ba2fccd4beca013a498368dfff Mon Sep 17 00:00:00 2001
From: vehnem <vehnem@yahoo.de>
Date: Wed, 4 Mar 2020 14:41:44 +0100
Subject: [PATCH] artifact comment with githublink

---
 databus-release.sh | 3 +--
 functions.sh       | 8 ++++----
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/databus-release.sh b/databus-release.sh
index d0447ad..6cf8260 100755
--- a/databus-release.sh
+++ b/databus-release.sh
@@ -38,8 +38,7 @@ cd $DATABUSDIR/dbpedia/$GROUP;
 mvn versions:set -DnewVersion=$(ls * | grep '^[0-9]\{4\}.[0-9]\{2\}.[0-9]\{2\}$' | sort -u  | tail -1);
 
 # get git commit link
-GITSHORTHASH=${git log | head -1 | cut -f2 -d ' ' | grep -o "^......."  }
-GITHUBLINK=${git log | head -1 | cut -f2 -d ' ' | sed 's|^|https://github.com/dbpedia/extraction-framework/commit/|'}
+GITHUBLINK="$(diefCommitLink)"
 
 PUBLISHER="https://vehnem.github.io/webid.ttl#this";
 # TODO marvin: shouldn't this be the web dir directly?
diff --git a/functions.sh b/functions.sh
index 2dcd035..317b905 100755
--- a/functions.sh
+++ b/functions.sh
@@ -200,8 +200,8 @@ mapAndCopy() {
 
 }
 
+diefCommitLink() {
 
-
-
-
-
+	cd $DIEFDIR
+	echo "https://github.com/dbpedia/extraction-framework/commit/$(git rev-parse @)"
+}
-- 
GitLab