git log for showing last commit
===

I'm adding a git log line to my deploy script:

    git pull origin master
    git log -n 1 > lastcommit.txt
    ant -f build.xml deploy

to save details of the last commit. This produces an output file (at time of writing):

    commit 3ced14ef1004287b55c21d384447c21cb58edfa6
    Merge: 616a15e 5adc9c5
    Author: www-data <www-data@backup.agilebase.co.uk>
    Date:   Sat Jul 28 15:20:39 2012 +0100

    Merge branch 'master' of github.com:okohll/agileBase

However, using that commit code https://github.com/okohll/agileBase/commits/3ced14ef1004287b55c21d384447c21cb58edfa6 returns a 404 not found error.

I must have misunderstood git log, I want to find the commit hash that will link to the last commit in github's web interface. Is there a way to do that? What does 3ced14ef1004287b55c21d384447c21cb58edfa6 refer to?

I notice that the 'Merge' line has at the end 5adc9c5 which is the start of the actual code I'm looking for, at time of writing 5adc9c51326772318394fceb479a31e26306259b.