[Bps-public-commit] BPS git mailer tools branch, master, updated. 987b92af34d8caafcb5b2e54981c2a7876582268
sartak at bestpractical.com
sartak at bestpractical.com
Mon Feb 23 22:08:07 EST 2009
The branch, master has been updated
via 987b92af34d8caafcb5b2e54981c2a7876582268 (commit)
from b2fcf94c30cac6f3fc64df6ad9bbde664e0a8e8a (commit)
Summary of changes:
post-receive-email | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 987b92af34d8caafcb5b2e54981c2a7876582268
Author: Shawn M Moore <sartak at gmail.com>
Date: Mon Feb 23 22:08:04 2009 -0500
Remove the one-line synopsis of the project, leaving just its name
diff --git a/post-receive-email b/post-receive-email
index b1d8002..c86cdfc 100755
--- a/post-receive-email
+++ b/post-receive-email
@@ -631,7 +631,9 @@ if [ -z "$GIT_DIR" ]; then
exit 1
fi
-projectdesc=$(sed -ne '1p' "$GIT_DIR/description")
+# Remove the one-line synopsis of the project, leaving just its name
+projectdesc=$(sed -ne 's/ - .*//; s/: .*//; 1p' "$GIT_DIR/description")
+
# Check if the description is unchanged from it's default, and shorten it to
# a more manageable length if it is
if expr "$projectdesc" : "Unnamed repository.*$" >/dev/null
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list