Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: always resolve real git config dir location if .git is a file #784

Merged
merged 2 commits into from Jan 30, 2020

Conversation

iiroj
Copy link
Member

@iiroj iiroj commented Jan 30, 2020

This PR fixes #783 by always checking if the the .git directory is actually file, and then resolves the real directory location by reading the file.

This works for both submodules and added worktrees.

@iiroj iiroj requested a review from okonet January 30, 2020 05:08
@codecov
Copy link

codecov bot commented Jan 30, 2020

Codecov Report

Merging #784 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #784   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          13     13           
  Lines         484    485    +1     
  Branches      108    106    -2     
=====================================
+ Hits          484    485    +1
Impacted Files Coverage Δ
lib/runAll.js 100% <100%> (ø) ⬆️
lib/resolveGitRepo.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c08e8e...89ae090. Read the comment docs.

@iiroj iiroj merged commit b98a5ed into master Jan 30, 2020
@iiroj iiroj deleted the fix-worktree branch January 30, 2020 06:32
@okonet
Copy link
Collaborator

okonet commented Jan 30, 2020

🎉 This PR is included in version 10.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Bug when running lint-staged in git worktree
2 participants