Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
1a9605c0
Commit
1a9605c0
authored
Oct 18, 2000
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-commit fixed up post commit, let's see if it works
parent
369b1c97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
BitKeeper/triggers/post-commit
BitKeeper/triggers/post-commit
+19
-12
No files found.
BitKeeper/triggers/post-commit
View file @
1a9605c0
#!/bin/sh
shift
REPO
=
`
bk gethost
`
:
`
pwd
`
TO
=
dev@mysql.com
if
[
-f
BitKeeper/etc/pushed
-a
"
$BK_COMMIT
"
=
OK
]
then
(
echo
${
USER
}
@
"
$@
"
echo
""
bk changes - < BitKeeper/etc/pushed
)
| mail
-s
"Outgoing from
$REPO
"
$TO
else
echo
${
USER
}
@
"
$@
"
| mail
-s
"Outgoing from
$REPO
=
$BK_OUTGOING
"
$TO
fi
shift
TO
=
dev@mysql.com
FROM
=
$USER
@mysql.com
if
[
"
$BK_COMMIT
"
=
OK
]
then
echo
"Commit successful, notifying developers at
$TO
"
(
cat
<<
EOF
From:
$FROM
To:
$TO
Subject: bk commit
EOF
bk changes
-v
-r
+
)
| /usr/sbin/sendmail
-t
else
echo
"commit failed because '
$BK_COMMIT
', sorry life is hard..."
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment