Skip to content

Commit

Permalink
Making sure the pre hook is checking for cached files
Browse files Browse the repository at this point in the history
  • Loading branch information
johngeorgewright committed Jun 11, 2013
1 parent cba68cd commit 881f429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-hooks/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ command()
fi
}

changed=`git diff --name-only | grep angular-xml.js`
changed=`git diff --cached --name-only | grep angular-xml.js`

if [ $changed ]
then
Expand Down

0 comments on commit 881f429

Please sign in to comment.