summaryrefslogtreecommitdiff
path: root/src/post-commit.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/post-commit.sh')
-rw-r--r--src/post-commit.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/post-commit.sh b/src/post-commit.sh
index 55c1ef5..a153632 100644
--- a/src/post-commit.sh
+++ b/src/post-commit.sh
@@ -19,7 +19,7 @@ commit_Hash=`git log -1 --format="%H"`
commit_hash=`git log -1 --format="%h"`
commit_author=`git log -1 --format="%an"`
commit_author_email=`git log -1 --format="%ae" | sed "s/@/[at]/;s/\./(dot)/"`
-commit_datetime=`git log -1 --format="%ai" | cut -d' ' -f1,2`
+commit_datetime=`git log -1 --format="%ai"`
commit_date=`git log -1 --format="%ad" --date="short"`
commit_time=`git log -1 --format="%ai" | cut -d' ' -f2`
commit_timestamp=`git log -1 --format="%at"`
@@ -43,10 +43,10 @@ article_get_content() {
}
replace_var_by_string() {
- sed "s/<\!--$1-->/$2/"
+ sed "s/<?fugitive\s\+$1\s*?>/$2/"
}
replace_var_by_file() {
- sed "/<\!--$1-->/ {
+ sed "/<?fugitive\s\+$1\s*?>/ {
r $2
d }"
}