Re: Is it possible to use git as a remote file storage without making any local repos?

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

 



On Wed, Oct 28, 2009 at 8:09 AM, Matvejchikov Ilya
<matvejchikov@xxxxxxxxx> wrote:
> I have a remote storage server with a git-daemon running and I want to
> be able to put some data in that repo
> in a way like 'git hash-object -w <object>'. The general problem for
> me is that I don't want to create any local
> git repositories that is needed by 'pit push ...' etc.
>
> So, is it possible to use git for remote storage purposes without
> making local repository?

This functionality isn't built into git (and it might be considered a
security hole, strictly speaking, if a repository let you download any
object by default).  However, it would be pretty easy to create your
own server that does this.

For example, you could make one CGI script that dumps its POST data
into a pipe to "git hash-object --stdin -w"

I've written a service similar to this at work.  It's relatively
simple to do a basic version. Of course, as you get into more
complicated situations (what about multiple users updating the same
filename?  merges?  authentication?) it gets more complicated.  But I
think everybody would want this for a different reason, so it's
unlikely that there'll ever be a single "standard" solution.

Have fun,

Avery
--
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]