mw-core-get.sh: Record the commit fetched.

Change-Id: I69f78f000e3b5449f6e158f1b5f71f58478e951e