Fix typo in Python commit id script.

BUG=angle:529

Change-Id: Ife174e3fb4cb32342f519691d1d5d5c015cf2727
Reviewed-on: https://chromium-review.googlesource.com/187541
Reviewed-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@chromium.org>
Reviewed-by: Shannon Woods <0f3694938fd5703bd548127ee497e4d604509bef@chromium.org>
Tested-by: Jamie Madill <7e492b4f1c8458024932de3ba475cbf015424c30@chromium.org>
import subprocess as sp
import sys

def grab_output(*command):
    return sp.Popen(command, stdout=sp.PIPE).communicate()[0].strip()

commit_id_size = 12

try:
    commit_id = grab_output('git', 'rev-parse', '--short=%d' % commit_id_size, 'HEAD')
    commit_date = grab_output('git', 'show', '-s', '--format=%ci', 'HEAD')
except:
    commit_id = 'invalid-hash'
    commit_date = 'invalid-date'

hfile = open(sys.argv[1], 'w')

hfile.write('#define ANGLE_COMMIT_HASH "%s"\n'    % commit_id)
hfile.write('#define ANGLE_COMMIT_HASH_SIZE %d\n' % commit_id_size)
hfile.write('#define ANGLE_COMMIT_DATE "%s"\n'    % commit_date)

hfile.close()

import subprocess as sp
import sys

def grab_output(*command):
    return sp.Popen(command, stdout=sp.PIPE).communicate()[0].strip()

commit_id_size = 12

try:
    commit_id = grab_output('gat', 'rev-parse', '--short=%d' % commit_id_size, 'HEAD')
    commit_date = grab_output('git', 'show', '-s', '--format=%ci', 'HEAD')
except:
    commit_id = 'invalid-hash'
    commit_date = 'invalid-date'

hfile = open(sys.argv[1], 'w')

hfile.write('#define ANGLE_COMMIT_HASH "%s"\n'    % commit_id)
hfile.write('#define ANGLE_COMMIT_HASH_SIZE %d\n' % commit_id_size)
hfile.write('#define ANGLE_COMMIT_DATE "%s"\n'    % commit_date)

hfile.close()
