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

Clean up c.GetConfig changes #172

Merged
merged 3 commits into from
Oct 20, 2018
Merged

Clean up c.GetConfig changes #172

merged 3 commits into from
Oct 20, 2018

Conversation

tie
Copy link
Contributor

@tie tie commented Oct 20, 2018

PR #170 changed some functions in client.go to use c.GetConfig. The problem is that GetConfig returns empty string if config does not exist.

This PR does not check the config presence on the system, but at least does two separate checks for empty user/email options. It'll still return NoGlobalConfig if options are empty even if the config exists.

@driusan driusan merged commit 3281592 into driusan:master Oct 20, 2018
@tie tie deleted the patch-1 branch October 21, 2018 03:10
driusan pushed a commit that referenced this pull request Oct 22, 2018
…176)

PR #172 Cleaned up PR #170 changes but forgot to remove unused var home.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants