On Mon, 28 Oct 2013 02:25:11 -0700 (PDT)
"Ignazio Calo'" <ignaz...@gmail.com> wrote:
> I read this page about git
> hook: http://git-scm.com/book/en/Customizing-Git-Git-Hooks and i
> still have some questions.
> I have a git server with some bare repos and I want create something
> like a continuos integration test so, I need to run a script when
> someone push on these repos.
> Main problem is that these repos are "bare" and doens't contains any
> file. there is a way inside my script to "extract" files from a bare
> repo or i need to create a workingcopy?
> If i create a separated working copy, how can i pull out this working
> copy inside my script?
> I tryed something like this, but seems not working
> cd /home/git/workingcopy/myawesomeapp
> git pull
Use plumbing Git commands to . Somehing like this:
$ mkdir -p /path/to/my/CI/dir && cd $_
$ export GIT_DIR=/path/to/a/bare/repo.git
$ export GIT_INDEX_FILE="`pwd`/.index"
$ git read-tree master
$ git checkout-index -a -u
...build, run test suite etc
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/groups/opt_out.