diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-03-08 10:10:27 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-03-08 10:46:00 +0100 |
commit | 1dd6b19e01e6a3edc11bdd4648766d717026f6b7 (patch) | |
tree | a1c2f81243aeab854cf8aa4a32e0bf035aabd0ee /git-hooks | |
parent | 788a2f7e386ee409d48a35cb9cac3ae8fa8c4853 (diff) |
git-hooks: include repo name in subject when new tag is crearted
Change-Id: Ied599cede63ab12ac29cef531206b4a467783972
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/core.git/hooks/update | 4 | ||||
-rwxr-xr-x | git-hooks/dictionaries.git/hooks/update | 4 | ||||
-rwxr-xr-x | git-hooks/help.git/hooks/update | 4 | ||||
-rwxr-xr-x | git-hooks/translations.git/hooks/update | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/git-hooks/core.git/hooks/update b/git-hooks/core.git/hooks/update index d1df79b8..5ee351f2 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 d1df79b8..5ee351f2 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 d1df79b8..5ee351f2 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 d1df79b8..5ee351f2 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 |