qisrc reset: honor -g attribute

Change-Id: I062ecbe89a4a44ce915ade8b77081a0b8df42f72