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

Add update server hook #1

Merged
merged 5 commits into from Dec 3, 2013
Merged

Conversation

kampfschlaefer
Copy link
Contributor

This is a new attribute on the bare-resource that create a simple post-update hook to update the server info. Needed for instant anonymous access via http.

There is no automatic test yet, does acceptance of this PR depend on a test?

If the option "add_update_server_hook" is set during creation, git-update-server-info is added as hook. This allows instant use of the repo for anonymous access via webserver.
#!/bin/sh
# Created by Chef

exec git-update-server-info
Copy link
Owner

Choose a reason for hiding this comment

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

AFAIK this should be exec git update-server-info.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right. Will fix this.

zuazo added a commit that referenced this pull request Dec 3, 2013
@zuazo zuazo merged commit 2d67e18 into zuazo:master Dec 3, 2013
@zuazo
Copy link
Owner

zuazo commented Dec 3, 2013

Wonderful. Thank you for your contribution 😄

I will release a new version including this patch in a few days.

@kampfschlaefer kampfschlaefer deleted the add_update_server_hook branch December 9, 2013 13:34
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.

None yet

2 participants