empty sha test && common fix on mac