Foros de discusión

GitHub timeout when checking-out Liferay sources

Jan Tošovský, modificado hace 7 años.

GitHub timeout when checking-out Liferay sources

Liferay Master Mensajes: 566 Fecha de incorporación: 22/07/10 Mensajes recientes
Dear All,

I am trying to checkout Liferay sources
svn co https://github.com/liferay/liferay-portal/tree/6.2.2-ga3

but I am constantly getting
svn: E175002: Unexpected HTTP status 504 'Gateway Timeout' on '/liferay/liferay-portal'

It works fine for other (smaller) GitHub projects.

Any idea how to extend timeout?

Thanks, Jan

PS: I can download the entire content, but I need it versioned to easily track the changes I made.
thumbnail
David H Nebinger, modificado hace 7 años.

RE: GitHub timeout when checking-out Liferay sources

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Why are you using svn to checkout github projects?

Why not just:

git clone https://github.com/liferay/liferay-portal.git


From there you just need to go into the directory and use the following to get the 6.2.2-ga3 tag source:

git checkout tags/6.2.2-ga3 -b 6.2.2-ga3


This way you'll get the full commit tree so if you want to apply a patch it is easily cherry picked.
Jan Tošovský, modificado hace 7 años.

RE: GitHub timeout when checking-out Liferay sources

Liferay Master Mensajes: 566 Fecha de incorporación: 22/07/10 Mensajes recientes
> Why are you using svn to checkout github projects?

I've migrated to another computer and I only have SVN diff of my changes to source files. My idea was to checkout the clean tag and apply that diff.

I just want to be able to build my customized portal. I have no ambitions to submit patches.

Anyway, I've tried that git approach.

It is really a huge repository ( 10 GB ) and it failed twice somewhere in the middle so I have to start again from the scratch. Then I used modified procedure, which should continue from the point it where it failed before:

http://stackoverflow.com/questions/25038556/git-clone-issue-repo-too-large-50m

git init
git remote add origin https://github.com/liferay/liferay-portal.git
git fetch
git checkout tags/6.2.2-ga3 -b 6.2.2-ga3


However, I couldn't test it as it completed without errors this time ;-)

I am slowly becoming git master :-)

Jan
thumbnail
David H Nebinger, modificado hace 7 años.

RE: GitHub timeout when checking-out Liferay sources

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
Jan Tošovský:
> Why are you using svn to checkout github projects?

I've migrated to another computer and I only have SVN diff of my changes to source files. My idea was to checkout the clean tag and apply that diff.

I just want to be able to build my customized portal. I have no ambitions to submit patches.


Eeek! This is definitely not supported by Liferay in any way and is not the proper way to modify Liferay. This is an impossible task that you will never, ever get clear of. Every patch by Liferay, every update, you're going to be back to reapplying your changes over and over again. It is a total nightmare scenario.
Jan Tošovský, modificado hace 7 años.

RE: GitHub timeout when checking-out Liferay sources (Respuesta)

Liferay Master Mensajes: 566 Fecha de incorporación: 22/07/10 Mensajes recientes
In meantime I got an answer from GitHub folks

This is a known issue. We're in the process of migrating the SVN bridge's data, and hadn't gotten to liferay/liferay-portal yet. I've kicked off a migration for it, so it should work better now.


Yes, it works better now. I can checkout the proper tag without any errors.

Jan