scripts: hide double git reference check error