Hello All, I'm trying to do something that I'm sure is doable with git. I would like to set a 'middle-man' git repository that I can push and pull from to manage our development and production servers for our switchover to koha 3 and future development. (git.koha.org) --> (MyKohaGit) <---> (KohaDevServer) \-------------> (KohaProductionServer) So MyKohaGit pulls changes from git.koha.org, I pull and push changes between MyKohaGit and KohaDevServer, and when I'm satisfied that the changes are production ready, I pull the changes from MyKohaGit to KohaProductionServer. I know I could just go straight between KohaDevServer and KohaProductionServer, but I'd like to make MyKohaGit public so others can track my updates that haven't made it into the official git repo yet. Is it really as simple as cloning git.koha.org and making it available via http/ssh? I've tried creating an empty repository and pushing to it from a clone of git.koha.org, and it populates it, but I don't seem to have a mechanism to update MyKohaGit directly from git.koha.org. Does any of this make sense? Thanks, Kyle http://www.kylehall.info Information Technology Crawford County Federated Library System ( http://www.ccfls.org )
On 2009/01/7, at 10:38 AM, Kyle Hall wrote:
Hello All, I'm trying to do something that I'm sure is doable with git. I would like to set a 'middle-man' git repository that I can push and pull from to manage our development and production servers for our switchover to koha 3 and future development.
(git.koha.org) --> (MyKohaGit) <---> (KohaDevServer) \-------------> (KohaProductionServer)
So MyKohaGit pulls changes from git.koha.org, I pull and push changes between MyKohaGit and KohaDevServer, and when I'm satisfied that the changes are production ready, I pull the changes from MyKohaGit to KohaProductionServer.
I know I could just go straight between KohaDevServer and KohaProductionServer, but I'd like to make MyKohaGit public so others can track my updates that haven't made it into the official git repo yet.
Is it really as simple as cloning git.koha.org and making it available via http/ssh?
yep ;) install gitweb too, so people can browse your repo with ease
I've tried creating an empty repository and pushing to it from a clone of git.koha.org, and it populates it, but I don't seem to have a mechanism to update MyKohaGit directly from git.koha.org.
a 'git pull git://git.koha.org/pub/scm/koha.git' should do it
Ok, so I'm trying to set up my git repo. I created a new git repo and pushed my dev machine's master to it through ssh. I also was able to clone this git repo using ssh, but if I try to do it through http it doesn't work. kyle@kyle-desktop:~$ git clone http://kylehall.info/koha.git Initialized empty Git repository in /mnt/ext/kyle/koha/.git/ warning: remote HEAD refers to nonexistent ref, unable to checkout. Any ideas? Thanks, Kyle http://www.kylehall.info Information Technology Crawford County Federated Library System ( http://www.ccfls.org ) On Tue, Jan 6, 2009 at 4:53 PM, Mason James <mason.loves.sushi@gmail.com> wrote:
On 2009/01/7, at 10:38 AM, Kyle Hall wrote:
Hello All, I'm trying to do something that I'm sure is doable with git. I would like to set a 'middle-man' git repository that I can push and pull from to manage our development and production servers for our switchover to koha 3 and future development.
(git.koha.org) --> (MyKohaGit) <---> (KohaDevServer) \-------------> (KohaProductionServer)
So MyKohaGit pulls changes from git.koha.org, I pull and push changes between MyKohaGit and KohaDevServer, and when I'm satisfied that the changes are production ready, I pull the changes from MyKohaGit to KohaProductionServer.
I know I could just go straight between KohaDevServer and KohaProductionServer, but I'd like to make MyKohaGit public so others can track my updates that haven't made it into the official git repo yet.
Is it really as simple as cloning git.koha.org and making it available via http/ssh?
yep ;)
install gitweb too, so people can browse your repo with ease
I've tried creating an empty repository and pushing to it from a clone of git.koha.org, and it populates it, but I don't seem to have a mechanism to update MyKohaGit directly from git.koha.org.
a 'git pull git://git.koha.org/pub/scm/koha.git' should do it
I don't know if it is possible to clone a git repo over http. There is a web interface to browsing a repo, git-web, but I don't think that is suitable for cloning. I think the standard protocols for cloning a repo are git:// ssh:// and maybe ftp:// I'm sure someone on this list can correct me if I'm wrong. On Fri, 2009-01-09 at 11:53 -0500, Kyle Hall wrote:
Ok, so I'm trying to set up my git repo.
I created a new git repo and pushed my dev machine's master to it through ssh. I also was able to clone this git repo using ssh, but if I try to do it through http it doesn't work.
kyle@kyle-desktop:~$ git clone http://kylehall.info/koha.git Initialized empty Git repository in /mnt/ext/kyle/koha/.git/ warning: remote HEAD refers to nonexistent ref, unable to checkout.
Any ideas?
Thanks, Kyle
http://www.kylehall.info Information Technology Crawford County Federated Library System ( http://www.ccfls.org )
On Tue, Jan 6, 2009 at 4:53 PM, Mason James <mason.loves.sushi@gmail.com> wrote:
On 2009/01/7, at 10:38 AM, Kyle Hall wrote:
Hello All, I'm trying to do something that I'm sure is doable with git. I would like to set a 'middle-man' git repository that I can push and pull from to manage our development and production servers for our switchover to koha 3 and future development.
(git.koha.org) --> (MyKohaGit) <---> (KohaDevServer) \-------------> (KohaProductionServer)
So MyKohaGit pulls changes from git.koha.org, I pull and push changes between MyKohaGit and KohaDevServer, and when I'm satisfied that the changes are production ready, I pull the changes from MyKohaGit to KohaProductionServer.
I know I could just go straight between KohaDevServer and KohaProductionServer, but I'd like to make MyKohaGit public so others can track my updates that haven't made it into the official git repo yet.
Is it really as simple as cloning git.koha.org and making it available via http/ssh?
yep ;)
install gitweb too, so people can browse your repo with ease
I've tried creating an empty repository and pushing to it from a clone of git.koha.org, and it populates it, but I don't seem to have a mechanism to update MyKohaGit directly from git.koha.org.
a 'git pull git://git.koha.org/pub/scm/koha.git' should do it
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel -- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA
for Koha checkout http://koha-dev.washk12.org or git://koha-dev.washk12.org/koha
This is similar to what I do for myself. The only difference is, for me, KohaDevServer and MyKohaGit are the same server. So I actually pull to a private repo on Dev and then push to MyKohaGit once things are stable ( in theory ). Pulls are fine, and I push straight to the file system. Ok, maybe it isn't that similar. At any rate, I expect you're setup will have two challenges. First is getting what you pull from git.koha.org to jive with what's in MyKohaGit. I like to rebase when I pull ( which may not be the best way, but it's cleaner ). This means I often have to resolve conflicts where my patches don't apply after a pull. Makes things interesting for those who pull from my repo. The other challenge will be getting MyKohaGit setup so you can push to it from KohaDevServer. I think it's been done on git.koha.org so the release maintainers can push patches up. I don't know how, but they might be able to help. To answer your question, yes, it is as simple as cloning git.koha.org. The only question is do you log into MyKohaGit for the pulls, or do you pull to KohaDevServer, and push from there to MyKohaGit. I'd recommend pulling from git.koha.org to KohaDevServer. Then you can resolve any patch conflicts before you push to MyKohaGit. Depending on how you pull and resolve conflicts you might have to force the push. The way I do it I have to, because my patches change as necessary to follow changes from git.koha.org. This will cause some difficulties when pulling to KohaProductionServer. After a force push I find it easiest on KohaProductionServer to drop the local branch that follows my development branch, and create a new one to follow development. Hope my rambling helps some. Good luck. On Tue, 2009-01-06 at 16:38 -0500, Kyle Hall wrote:
Hello All, I'm trying to do something that I'm sure is doable with git. I would like to set a 'middle-man' git repository that I can push and pull from to manage our development and production servers for our switchover to koha 3 and future development.
(git.koha.org) --> (MyKohaGit) <---> (KohaDevServer) \-------------> (KohaProductionServer)
So MyKohaGit pulls changes from git.koha.org, I pull and push changes between MyKohaGit and KohaDevServer, and when I'm satisfied that the changes are production ready, I pull the changes from MyKohaGit to KohaProductionServer.
I know I could just go straight between KohaDevServer and KohaProductionServer, but I'd like to make MyKohaGit public so others can track my updates that haven't made it into the official git repo yet.
Is it really as simple as cloning git.koha.org and making it available via http/ssh? I've tried creating an empty repository and pushing to it from a clone of git.koha.org, and it populates it, but I don't seem to have a mechanism to update MyKohaGit directly from git.koha.org.
Does any of this make sense?
Thanks, Kyle
http://www.kylehall.info Information Technology Crawford County Federated Library System ( http://www.ccfls.org ) _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-devel -- Michael Hafen Systems Analyst and Programmer Washington County School District Utah, USA
for Koha checkout http://koha-dev.washk12.org or git://koha-dev.washk12.org/koha
participants (3)
-
Kyle Hall -
Mason James -
Michael Hafen