Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orion-dev] A possibly breaking change for all git users in Orion

Hi there,

I would like to close bug 339854[1] which is about changing the current
form of git URIs used in Orion to communicate with the server. Here is an
examplatory git URI we use
nowadays: /git/commit/HEAD/file/{projectId}/folder/file.txt. This form has
number of limitations - see bug 339854, comment 0. The new format uses
clone IDs to address any resource under git control, so the former URI
would look like this: /git/commit/{cloneId}/folder/file.txt. For more
details see bug 339854 and an attached patch[2]. Still haven't updated the
wiki page[3].

The problem is that if you have projects/top-level folders in your
workspace which are linked to a git repository you will have to delete them
and linked them to your repos again. Git support won't be available for
these projects otherwise.

For projects which have a git repo auto-created for them[4] it's a little
bit more complicated. The easiest solution would be to remove them, saving
their content first in a safe place. Then you could re-create them and copy
the content back. I know this is inconvenient, but since [4] is supposed to
be a short term solution I don't think we need a migration story for these
cases.

Please let me know if this is going be a serious problem for any of you. If
I don't hear any objections soon, I will assume you're fine with it and
release the fix in few days.

Cheers,

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=339854
[2] https://bugs.eclipse.org/bugs/attachment.cgi?id=191408
[3] http://wiki.eclipse.org/Orion/Server_API/Git_API
[4] http://wiki.eclipse.org/Orion/Server_admin_guide#Automatic_git_projects

--
Tomek



Back to the top