(refs #343)Retrieve all commit id from Git repository in pre commit hook instead of COMMIT_LOG table
Fix getAllcommitIds bug in empty repository