summaryrefslogtreecommitdiff
path: root/script/commit_mark.sh
diff options
context:
space:
mode:
Diffstat (limited to 'script/commit_mark.sh')
-rwxr-xr-xscript/commit_mark.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/script/commit_mark.sh b/script/commit_mark.sh
index 8495808cc6..e9e0f122b8 100755
--- a/script/commit_mark.sh
+++ b/script/commit_mark.sh
@@ -1,8 +1,10 @@
#!/bin/sh
# add a autobuild message to the HEAD commit
-if grep -q '^Autobuild.User' "$1"; then
- echo "Already marked as tested"
+branch=$(git branch --contains HEAD | grep '^\* ' | sed -e 's/^\* //')
+
+if grep -q "^Autobuild\-User($branch): " "$1"; then
+ echo "Already marked as tested for $branch"
exit 0
fi
@@ -13,7 +15,7 @@ if test -z "$mailaddr" ; then
fi
cat <<EOF >> "$1"
-Autobuild-User: $fullname <$mailaddr>
-Autobuild-Date: $(date) on $(hostname)
+Autobuild-User($branch): $fullname <$mailaddr>
+Autobuild-Date($branch): $(date) on $(hostname)
EOF
exit 0