• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarmolov / git-hooks-js / 174
99%
master: 98%

Build:
Build:
LAST BUILD BRANCH: use-relative-paths-in-hooks
DEFAULT BRANCH: master
Ran 26 Apr 2019 09:32PM UTC
Jobs 5
Files 2
Run time 28s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
174

Pull #62

travis-ci

web-flow
Use relative path to git-hooks in installed hooks scripts

Before this patch, installing git-hooks would use absolute paths to
require `node_modules/git-hooks/lib/git-hooks`. This works most of
the time, but there are instances in which it does not. For example:

I do development on a host machine, but yarn install runs inside a
Docker container. In this case, the absolute path to `node_modules`
is different in the two environments. This means for the git-hooks
module to work as intended, I am only able to run Git commands from
inside of the container. I typically run Git commands from the host
machine, so this doesn't work for me.

More importantly, though, I see no reason to force everybody working
on my project to use Git in one environment or the other.

After this patch, installed git-hooks use relative paths to require
`node_modules/git-hooks/lib/git-hooks`.
Pull Request #62: Use relative path to git-hooks in installed hooks scripts

1 of 1 new or added line in 1 file covered. (100.0%)

95 of 96 relevant lines covered (98.96%)

166.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 174.1 26 Apr 2019 09:32PM UTC 0
98.96
Travis Job 174.1
2 174.2 26 Apr 2019 09:32PM UTC 0
98.96
Travis Job 174.2
3 174.3 26 Apr 2019 09:32PM UTC 0
98.96
Travis Job 174.3
4 174.4 26 Apr 2019 09:33PM UTC 0
98.96
Travis Job 174.4
5 174.5 26 Apr 2019 09:32PM UTC 0
98.96
Travis Job 174.5
Source Files on build 174
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #174
  • Pull Request #62
  • PR Base - master (#172)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc