gitmirror
gitmirror copied to clipboard
repo working directory
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.
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.
ok, do you have an example? thanks again.