Updated commit hook to check staging instead of working directory.