Commit e6724e88 authored by shangbj's avatar shangbj

update

parent ca89d9a8
...@@ -33,9 +33,8 @@ const path = require('path') ...@@ -33,9 +33,8 @@ const path = require('path')
// // do something... // // do something...
// console.log(data) // console.log(data)
// }); // });
var fs = require('fs');
var path = require('path');
var gitHead = path.resolve(__dirname, '../.git/refs/remotes/origin/HEAD'); //可以拿到当前分之 var gitHead = path.resolve(__dirname, '../.git/refs/remotes/origin/HEAD'); //可以拿到当前分之
var headMsg = fs.readFileSync(gitHead, 'utf-8'); var headMsg = fs.readFileSync(gitHead, 'utf-8');
console.log('----', headMsg.toString()) console.log('----', headMsg.toString())
// process.exit(1)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment