metadata_scm: use rev-parse rather than show-ref
authorChris Larson <chris_larson@mentor.com>
Thu, 4 Nov 2010 04:18:02 +0000 (04:18 +0000)
committerChris Larson <chris_larson@mentor.com>
Thu, 4 Nov 2010 18:36:15 +0000 (11:36 -0700)
commita3d8c448c2bb3ea2c9a92bdb442fb4b39144bae0
treeeca5fbfcc7c1212dd444a0ca576f0e829ae7a3ab
parentc35b4a0846ea9867ed1eeea94a465019a22b6b6c
metadata_scm: use rev-parse rather than show-ref

show-ref will show all matching refs, so a "show-ref HEAD" will show not just
the local HEAD, but the fetched remote ones as well.  This isn't what we want
for this function, so change it to use rev-parse with --verify, and also
change it to use --short, to shorten the hash to a more palatable length.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Acked-by: Tim Harvey <harvey.tim@gmail.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
classes/metadata_scm.bbclass