summaryrefslogtreecommitdiff
path: root/script/commit_mark.sh
diff options
context:
space:
mode:
Diffstat (limited to 'script/commit_mark.sh')
-rwxr-xr-xscript/commit_mark.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/commit_mark.sh b/script/commit_mark.sh
index 38328c4827..bb1e9428a0 100755
--- a/script/commit_mark.sh
+++ b/script/commit_mark.sh
@@ -1,6 +1,11 @@
#!/bin/sh
# add a autobuild message to the HEAD commit
+if grep -q '^Autobuild.User' "$1"; then
+ echo "Already marked as tested"
+ exit 0
+fi
+
fullname=$(getent passwd $USER | cut -d: -f5| cut -d',' -f1)
cat <<EOF >> "$1"
Autobuild-User: $fullname <$USER@samba.org>