Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

7 lines (5 sloc) 0.236 kB
module.exports = (path, callback) ->
exec = require('child_process').exec
exec 'git rev-parse --short HEAD', {cwd: path}, (error, stdout, stderr) ->
if error then return callback error, stderr.trim()
callback null, stdout.trim()
Jump to Line
Something went wrong with that request. Please try again.