[Libreoffice-commits] dev-tools.git: git-hooks/core.git git-hooks/dictionaries.git git-hooks/help.git git-hooks/translations.git

Miklos Vajna vmiklos at suse.cz
Fri Mar 8 01:46:18 PST 2013


 git-hooks/core.git/hooks/update         |    4 ++--
 git-hooks/dictionaries.git/hooks/update |    4 ++--
 git-hooks/help.git/hooks/update         |    4 ++--
 git-hooks/translations.git/hooks/update |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 1dd6b19e01e6a3edc11bdd4648766d717026f6b7
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Fri Mar 8 10:10:27 2013 +0100

    git-hooks: include repo name in subject when new tag is crearted
    
    Change-Id: Ied599cede63ab12ac29cef531206b4a467783972

diff --git a/git-hooks/core.git/hooks/update b/git-hooks/core.git/hooks/update
index d1df79b..5ee351f 100755
--- a/git-hooks/core.git/hooks/update
+++ b/git-hooks/core.git/hooks/update
@@ -55,8 +55,9 @@ date_format="%F %R %z"
 num_path_components=2
 
 # Set subject
+repo=$(basename $(cd $GIT_DIR ; pwd))
 if expr "$2" : '0*$' >/dev/null ; then
-	subject="Changes to '${1##refs/heads/}'"
+	subject="$repo: Changes to '${1##refs/heads/}'"
 else
 	base=$(git-merge-base "$2" "$3")
 	subject=$(git-diff-tree -r --name-only "$base" "$3" |
@@ -69,7 +70,6 @@ else
 	if [ "$branch" != "master" ] ; then
 		subject="Branch '$branch' - $subject"
 	fi
-	repo=$(basename $(cd $GIT_DIR ; pwd))
 	subject="$repo: $subject"
 fi
 
diff --git a/git-hooks/dictionaries.git/hooks/update b/git-hooks/dictionaries.git/hooks/update
index d1df79b..5ee351f 100755
--- a/git-hooks/dictionaries.git/hooks/update
+++ b/git-hooks/dictionaries.git/hooks/update
@@ -55,8 +55,9 @@ date_format="%F %R %z"
 num_path_components=2
 
 # Set subject
+repo=$(basename $(cd $GIT_DIR ; pwd))
 if expr "$2" : '0*$' >/dev/null ; then
-	subject="Changes to '${1##refs/heads/}'"
+	subject="$repo: Changes to '${1##refs/heads/}'"
 else
 	base=$(git-merge-base "$2" "$3")
 	subject=$(git-diff-tree -r --name-only "$base" "$3" |
@@ -69,7 +70,6 @@ else
 	if [ "$branch" != "master" ] ; then
 		subject="Branch '$branch' - $subject"
 	fi
-	repo=$(basename $(cd $GIT_DIR ; pwd))
 	subject="$repo: $subject"
 fi
 
diff --git a/git-hooks/help.git/hooks/update b/git-hooks/help.git/hooks/update
index d1df79b..5ee351f 100755
--- a/git-hooks/help.git/hooks/update
+++ b/git-hooks/help.git/hooks/update
@@ -55,8 +55,9 @@ date_format="%F %R %z"
 num_path_components=2
 
 # Set subject
+repo=$(basename $(cd $GIT_DIR ; pwd))
 if expr "$2" : '0*$' >/dev/null ; then
-	subject="Changes to '${1##refs/heads/}'"
+	subject="$repo: Changes to '${1##refs/heads/}'"
 else
 	base=$(git-merge-base "$2" "$3")
 	subject=$(git-diff-tree -r --name-only "$base" "$3" |
@@ -69,7 +70,6 @@ else
 	if [ "$branch" != "master" ] ; then
 		subject="Branch '$branch' - $subject"
 	fi
-	repo=$(basename $(cd $GIT_DIR ; pwd))
 	subject="$repo: $subject"
 fi
 
diff --git a/git-hooks/translations.git/hooks/update b/git-hooks/translations.git/hooks/update
index d1df79b..5ee351f 100755
--- a/git-hooks/translations.git/hooks/update
+++ b/git-hooks/translations.git/hooks/update
@@ -55,8 +55,9 @@ date_format="%F %R %z"
 num_path_components=2
 
 # Set subject
+repo=$(basename $(cd $GIT_DIR ; pwd))
 if expr "$2" : '0*$' >/dev/null ; then
-	subject="Changes to '${1##refs/heads/}'"
+	subject="$repo: Changes to '${1##refs/heads/}'"
 else
 	base=$(git-merge-base "$2" "$3")
 	subject=$(git-diff-tree -r --name-only "$base" "$3" |
@@ -69,7 +70,6 @@ else
 	if [ "$branch" != "master" ] ; then
 		subject="Branch '$branch' - $subject"
 	fi
-	repo=$(basename $(cd $GIT_DIR ; pwd))
 	subject="$repo: $subject"
 fi
 


More information about the Libreoffice-commits mailing list