summaryrefslogtreecommitdiff
path: root/git-hooks
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-03-08 10:10:27 +0100
committerMiklos Vajna <vmiklos@suse.cz>2013-03-08 10:46:00 +0100
commit1dd6b19e01e6a3edc11bdd4648766d717026f6b7 (patch)
treea1c2f81243aeab854cf8aa4a32e0bf035aabd0ee /git-hooks
parent788a2f7e386ee409d48a35cb9cac3ae8fa8c4853 (diff)
git-hooks: include repo name in subject when new tag is crearted
Change-Id: Ied599cede63ab12ac29cef531206b4a467783972
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/core.git/hooks/update4
-rwxr-xr-xgit-hooks/dictionaries.git/hooks/update4
-rwxr-xr-xgit-hooks/help.git/hooks/update4
-rwxr-xr-xgit-hooks/translations.git/hooks/update4
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