Re: git push from client is not updating files on server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The project in Apache's DocumentRoot was created using the following command:

"cd /var/www/git
git clone --bare <non-bare working directory> <project>.git"

Hence, I believe that is is bare.  Besides, it does not have .git
folder.  I assumed that when I did this that the non-bare directory
will also be updated when a push is performed via http.

My objective is that I would like the developers to be able to push
via http and these pushes will need to be reflected on the non-bare
working directory as these directories will be used for automated
tests.

Is what I am trying to do even possible?  If so, please share with me a guide.

Thank you in advance.

Regards,
j

On Tue, Mar 6, 2012 at 3:32 PM, Neal Kreitzinger <nkreitzinger@xxxxxxxxx> wrote:
> On 3/6/2012 5:07 PM, Jerome Yanga wrote:
>>
>> Is there a way to make git write to the working directory of the
>> central public server?
>>
> In your original post you stated:
>
>
>> From the git client server, I can successfully clone projects in from
>> the central public Git server using the command below.
>>
>> git clone
>> http://<hostname_of_central_public_git_server>/<Project_name>.git
>
> ".git" extension implies "bare" repo.  A bare repo has _no_ working tree.
>  Is the repo in question bare or non-bare?  If you are not sure, then cd to
> the central-repo-dir (ie., the <Project_name>.git you cloned _from_ in your
> example above) and run "git config -l |grep bare".  If it says
> "core.bare=true" then it is a bare repo.
>
> v/r,
> neal
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]