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

Use repository configuration of user.name and user.email for deploy commits #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Yuki-Inoue
Copy link

Currently, the deploy repository's commit is always done by using global "user.name" and "user.email"; even if these configs exists in the parent octopress repository, they are not used. This is a trouble if user wants to configure the deployed committer name/email on repository basis.

This PR fix that behavior and use the octopress repository's user configuration for making the commits.

The original repo may have it's own user configuration, which should be
inherited in the deployment repo.
This commits add the user config copy logic.
In git.rb, check_deploy_dir method was called but did nothing,
so removed it; it is called in init_repo method, but the result of it
does not affect the execution logic.
If the check is failse, then the init_repo method does nothing anyway.
@Yuki-Inoue Yuki-Inoue changed the title User repository configuration of user.name and user.email Use repository configuration of user.name and user.email for deploy commits Dec 19, 2015
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.

1 participant