]> git.droids-corp.org - git-central.git/commitdiff
Remove newlines.
authorStephen Haberman <stephen@exigencecorp.com>
Thu, 21 Aug 2008 19:57:17 +0000 (14:57 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Thu, 21 Aug 2008 19:57:17 +0000 (14:57 -0500)
server/post-receive-email

index df8bdfe39b63ae3f7c66c432ad1195d6d9366a96..1e08c8a862b660a03eddee512b57055000b51348 100755 (executable)
@@ -385,7 +385,6 @@ generate_delete_branch_email()
 generate_create_atag_email()
 {
        echo "        at  $newrev ($newrev_type)"
-
        generate_atag_email
 }
 
@@ -397,7 +396,6 @@ generate_update_atag_email()
 {
        echo "        to  $newrev ($newrev_type)"
        echo "      from  $oldrev (which is now obsolete)"
-
        generate_atag_email
 }
 
@@ -486,7 +484,6 @@ generate_delete_atag_email()
 generate_create_ltag_email()
 {
        echo "        at  $newrev ($newrev_type)"
-
        generate_ltag_email
 }
 
@@ -498,7 +495,6 @@ generate_update_ltag_email()
 {
        echo "        to  $newrev ($newrev_type)"
        echo "      from  $oldrev"
-
        generate_ltag_email
 }
 
@@ -559,8 +555,7 @@ LOGBEGIN="- Log ----------------------------------------------------------------
 LOGEND="-----------------------------------------------------------------------"
 
 # --- Config
-# Set GIT_DIR either from the working directory, or from the environment
-# variable.
+# Set GIT_DIR either from the working directory or the environment variable.
 GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
 if [ -z "$GIT_DIR" ]; then
        echo >&2 "fatal: post-receive: GIT_DIR not set"
@@ -568,11 +563,9 @@ if [ -z "$GIT_DIR" ]; then
 fi
 
 projectdesc=$(sed -ne '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
-then
-       projectdesc="UNNAMED PROJECT"
+# Shorten the description if it's the default
+if expr "$projectdesc" : "Unnamed repository.*$" >/dev/null ; then
+       projectdesc="UNNAMED"
 fi
 
 recipients=$(git config hooks.post-receive-email.mailinglist)