Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Commit

Permalink
Signed-off-by: snow <i@xunuo.com>
Browse files Browse the repository at this point in the history
  • Loading branch information
xunuo committed Jun 25, 2012
1 parent 892b9b8 commit d636ae7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -30,7 +30,7 @@ npm install node.svntail
--------------------


注意!在一切开始前,首先要给pre-commit赋可执行权限
注意!在一切开始前,首先要给pre-commit赋可执行权限,安装完成后建议运行 dos2unix pre-commit 转义其中的非ASCII字符.


~~~javascript
Expand Down
1 change: 1 addition & 0 deletions demo-hooks/ali-f2e-pre-commit
@@ -1,6 +1,7 @@
#!/usr/bin/node
/**
* 配置集合
* 安装完成后建议运行 dos2unix pre-commit 转义非法字符
*/

var config = {
Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "node.svntail",
"version": "0.3.4",
"version": "0.3.5",
"author": {
"name": "xunuo",
"email": "i@xunuo.com",
Expand Down Expand Up @@ -35,6 +35,6 @@
"node": "*"
},
"scripts": {
"install": "node ./run-at-install.js; cp ../../pre-commit ../../pre-commit-bak-`date +%Y%m%d%H%M%S`"
"install": "node ./run-at-install.js; if [ -f '../../pre-commit' ];then cp ../../pre-commit ../../pre-commit-bak-`date +%Y%m%d%H%M%S`; fi"
}
}

0 comments on commit d636ae7

Please sign in to comment.