Re: Is there any plan to support partial checkout or submoudule improvement?
- From
- Lars Hjemli <hjemli@gmail.com>
- Date
- Oct 16, 2007, 10:50 UTC
- Message-ID
- <8c5c35580710160350h53a7b5c4k374067372d4aac1d@mail.gmail.com>
- In-Reply-To
- <20071016095622.CE14F7E6F@mail.kooxoo.com>
On 10/16/07, franky <yinping@kooxoo.com> wrote:
> lars said: > > $ git archive --remote=<repo> <revspec> <path> | tar -x > > I can't know deployment version easily
The <revspec> can be a tag. So you can easily create a wrapper script to allow such things as
$ ./deploy.sh v1.2.3 $ ./deploy.sh HEAD $ ./deploy.sh master $ ./deploy.sh <sha1>
(note: for this to work with the git:// protocol, git-daemon needs --enable=upload-archive)
-- larsh