mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-08-06 08:12:09 -03:00
Improve code quality and write tests
This commit is contained in:
15
node_modules/codecov/lib/git.js
generated
vendored
Normal file
15
node_modules/codecov/lib/git.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
var execSync = require('child_process').execSync
|
||||
|
||||
module.exports = {
|
||||
branch: function() {
|
||||
return execSync('git rev-parse --abbrev-ref HEAD || hg branch')
|
||||
.toString()
|
||||
.trim()
|
||||
},
|
||||
|
||||
head: function() {
|
||||
return execSync("git log -1 --pretty=%H || hg id -i --debug | tr -d '+'")
|
||||
.toString()
|
||||
.trim()
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user