1 Star 0 Fork 0

螭奇/web像素画工具Piskel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pre-commit 564 Bytes
一键复制 编辑 原始数据 按行查看 历史
jdescottes 提交于 2013-08-12 02:07 +08:00 . adding precommit hook to source control
#!/bin/sh
# stash unstaged changes, run release task, stage release updates and restore stashed files
NAME=$(git branch | grep '*' | sed 's/* //')
# don't run on rebase
if [ $NAME != '(no branch)' ]
then
NOT_STAGED=$(git status | grep 'not staged')
# if [ "${NOT_STAGED#*not staged}" != "$NOT_STAGED" ]
if [ "$NOT_STAGED" != "" ]
then
echo "Unclean directory, aborting commit. Run git status."
exit 1
fi
grunt precommit
RETVAL=$?
if [ $RETVAL -ne 0 ]
then
echo "grunt test failed, aborting commit. Run grunt test"
exit 1
fi
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/YC_1ccode/web-pixel-drawing-tool--pixel.git
git@gitee.com:YC_1ccode/web-pixel-drawing-tool--pixel.git
YC_1ccode
web-pixel-drawing-tool--pixel
web像素画工具Piskel
master

搜索帮助