Don't reset git state if patches are applied using git am
Remove merged commit: http://review.cyanogenmod.org/#/c/48336/