summaryrefslogtreecommitdiff
path: root/git-commit-script
diff options
context:
space:
mode:
Diffstat (limited to 'git-commit-script')
-rwxr-xr-xgit-commit-script1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-commit-script b/git-commit-script
index 5e5c0ccb3a..57f5333db8 100755
--- a/git-commit-script
+++ b/git-commit-script
@@ -4,6 +4,7 @@ if [ ! -d $GIT_DIR ]; then
echo Not a git directory 1>&2
exit 1
fi
+git-update-cache -q --refresh -- "$@" || exit 1
PARENTS="-p HEAD"
if [ ! -r $GIT_DIR/HEAD ]; then
if [ -z "$(git-ls-files)" ]; then