s4:dsdb/drepl: update the source_dsa_obj/invocation_id in repsFrom
[Samba/gebeck_regimport.git] / script / commit_mark.sh
blobe9e0f122b81ec91a504845677963fc4b6c1b7f0f
1 #!/bin/sh
2 # add a autobuild message to the HEAD commit
4 branch=$(git branch --contains HEAD | grep '^\* ' | sed -e 's/^\* //')
6 if grep -q "^Autobuild\-User($branch): " "$1"; then
7 echo "Already marked as tested for $branch"
8 exit 0
9 fi
11 fullname=$(getent passwd $USER | cut -d: -f5| cut -d',' -f1)
12 mailaddr=$(git config user.email)
13 if test -z "$mailaddr" ; then
14 mailaddr="$USER@samba.org"
16 cat <<EOF >> "$1"
18 Autobuild-User($branch): $fullname <$mailaddr>
19 Autobuild-Date($branch): $(date) on $(hostname)
20 EOF
21 exit 0