fix(post): revert to execing git commands

`git-node` is nice in theory, but actually unstable and inconsistent.
This commit is contained in:
Stephan Bönnemann
2015-02-08 19:14:32 +01:00
parent 486ebed9f3
commit bf69c1ae93
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
'use strict'
var exec = require('child_process').exec
var readFile = require('fs').readFileSync
var url = require('url')
var changelog = require('conventional-changelog')
var git = require('git-node')
var GitHubApi = require('github')
var parseSlug = require('parse-github-repo-url')
var parseUrl = require('github-url-from-git')
@@ -31,7 +31,7 @@ module.exports = function (options, cb) {
repository: parseUrl(repository),
file: false
}, efh(cb)(function (log) {
git.repo('./.git').loadAs('commit', 'HEAD', efh(cb)(function (commit, hash) {
exec('git rev-parse HEAD', efh(cb)(function (hash) {
var ghRepo = parseSlug(repository)
var release = {
owner: ghRepo[0],