fix use sudo pwuser not git attribute
Merge pull request #8583 from Jiaion/0.17

fix use sudo pwuser not git attribute