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

repo working directory #15

Open
sull opened this issue May 4, 2017 · 2 comments
Open

repo working directory #15

sull opened this issue May 4, 2017 · 2 comments

Comments

@sull
Copy link

sull commented May 4, 2017

I am trying out gitmirror, it's very cool. However, I want to achieve the following and maybe you can tell me if this is this is the right tool.

I need to keep a separate repo (Golang codebase) on a server in sync (whenever a push is made) but only for the purpose of generating a godoc (running in http server mode behind authentication for private access of private repo documentation).

I thought using your nice Go server would be an ideal component. However, I need access to the Go src dir so the godoc server can always be up to date. I can do a git clone of the mirror after each update, but i'm not sure if gitmirror can be made to chain or customize commands in a configurable way (I will look at the code).

Thoughts? Thanks.

@dustin
Copy link
Owner

dustin commented May 4, 2017

You can use a post-fetch hook to do whatever you need after your sync is complete. I used to use this to build, test, and deploy software on every push. I'd assume building docs wouldn't be any harder.

@sull
Copy link
Author

sull commented May 4, 2017

ok, do you have an example? thanks again.

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

No branches or pull requests

2 participants