Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Look up config in git root #123

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

Merged
woile merged 12 commits into commitizen-tools:master from Lee-W:look-up-config-in-git-root
Jan 20, 2020

Conversation

Copy link
Member

@Lee-W Lee-W commented Jan 15, 2020
edited
Loading

Lee-W added 12 commits January 14, 2020 23:20
it's not used in base_config but should be overwritten in a child class
...it project
pathlib returns Path('.') if empty is passed
Copy link
Member

woile commented Jan 15, 2020

Looks good, I'm on holiday now, coming weekend I'll check it in depth

Copy link
Member Author

Lee-W commented Jan 15, 2020

Sure! I might send a few PRs these days. But take your time and have a nice holiday 🎉

@Lee-W Lee-W force-pushed the look-up-config-in-git-root branch from ef9ac10 to 84a2118 Compare January 17, 2020 11:13
global_cfg = os.path.join(home, ".cz")
if not os.path.exists(global_cfg):
home = Path.home()
global_cfg = home/Path(".cz")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Lee-W reacted with rocket emoji
@woile woile merged commit 46a2b6a into commitizen-tools:master Jan 20, 2020
@Lee-W Lee-W deleted the look-up-config-in-git-root branch February 20, 2020 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@woile woile woile left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /