Skip to content

Commit

Permalink
enhancement: find nearest parent containing .git and execute git comm…
Browse files Browse the repository at this point in the history
…ands from there

Closes therealklanni#84 and therealklanni#41
  • Loading branch information
robfentress committed Aug 11, 2016
1 parent 9114d83 commit 6c3429a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ exit status would have, check the [git-scm docs](https://git-scm.com/docs/githoo
+ [github/therealklanni](https://github.com/therealklanni)
+ [twitter/therealklanni](http://twitter.com/therealklanni)

## Contributor

**Robert Fentress**

## License

MIT © Kevin Lanni
Expand Down
2 changes: 1 addition & 1 deletion lib/get-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function getIndexed() {
function streamFromIndexed(gulp, options) {
return gulp.src(getIndexed(), options)
.pipe(map(function (file, cb) {
var hash = execSync('git ls-files -s ' + file.path, {
var hash = execSync('git ls-files -s ' + file.path + ')', {
silent: true
}).output.split(' ')[1];
var hash = execSync('(cd ' + dir + 'g && it ls-files -s ' + file.path + ')', {
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"description": "Simple git-hook integration for your gulp workflows.",
"homepage": "https://github.com/therealklanni/git-guppy",
"author": "Kevin Lanni (https://github.com/therealklanni)",
"contributors": [ {
"name": "Robert Fentress"
}],
"repository": {
"type": "git",
"url": "https://github.com/therealklanni/git-guppy.git"
Expand Down Expand Up @@ -30,7 +33,9 @@
},
"devDependencies": {
"chai": "^3.5.0",

"find-parent-dir": "^0.3.0",

"gulp": "^3.9.1",
"gulp-filter": "^4.0.0",
"gulp-istanbul": "^1.0.0",
Expand Down

0 comments on commit 6c3429a

Please sign in to comment.