I double checked your code with a working one. I assume that NewCommit is your activity.
Apart from explicitly setting the activity in the intent (something like Intent intent = new Intent(c, NewCommit.class);)
I think the main difference (and the problem) is that you are calling
PendingIntent.getBroadcast
instead of
PendingIntent.getActivity
The doc says:
"Retrieve a PendingIntent that will start a new activity, like calling Context.startActivity(Intent). Note that the activity will be started outside of the context of an existing activity, so you must use the Intent.FLAG_ACTIVITY_NEW_TASK launch flag in the Intent."