Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
fix: calls git exe instead of git file in cwd
Browse files Browse the repository at this point in the history
fixes #7
  • Loading branch information
UziTech committed Feb 29, 2020
1 parent f58a1f8 commit 718e172
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
3 changes: 2 additions & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/** @babel */

import which from "which";
import commands from "./commands";
import {NotificationsConfig} from "./Notifications";

export default {
gitPath: {
type: "string",
default: "git",
default: which.sync("git", {nothrow: true}) || "git",
description: "Path to your git executable",
order: 0
},
Expand Down
21 changes: 15 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"etch": "^0.14.0",
"promisificator": "^4.1.1",
"rimraf": "^3.0.2",
"string-argv": "^0.3.1"
"string-argv": "^0.3.1",
"which": "^2.0.2"
},
"devDependencies": {
"@commitlint/cli": "8.3.5",
Expand Down

0 comments on commit 718e172

Please sign in to comment.