Skip to content

Commit

Permalink
Use git status instead of git st.
Browse files Browse the repository at this point in the history
  • Loading branch information
akzhan committed Oct 18, 2011
1 parent 0ea36bc commit 6544c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precommit-hook.sh
Expand Up @@ -2,7 +2,7 @@
cd $(git rev-parse --show-toplevel)

dt=`date -u +%d.%m.%Y-%H:%M:%S`
if [ "$(git st --porcelain src/js/masha.js | cut -b1)" == "M" ]; then
if [ "$(git status --porcelain src/js/masha.js | cut -b1)" == "M" ]; then
# Adding version to js
out=`sed "s/\\.version = \"[^\"]*\";/\\.version = \"$dt\";/g" src/js/masha.js`
echo "$out" > src/js/masha.js
Expand Down

0 comments on commit 6544c8e

Please sign in to comment.