Go to file
Edwin Kempin 4bf36efa04 Fix clone with commit-msg hook when project name contains '/'
Cloning a project 'foo/bar' with

  git clone ssh://<user>@<host>:29418/foo/bar

clones the project into a 'bar' folder.

This means that the commit-msg hook needs to be copied into
'bar/.git/hooks/', but so far the command tried to copy it into
'foo/bar/.git/hooks/' which failed since the folder didn't exist.

The clone commands that are returned from the GetServerInfo REST
endpoint may now contain 2 placeholders, '${project}' for the project
name and '${project-base-name}' for the project base name. E.g. for a
project 'foo/bar' '${project}' is a placeholder for 'foo/bar' and
'${project-base-name}' is a placeholder for 'bar'.

Bug: Issue 3444
Change-Id: Ia2dd9a70063498bdf21ecd66f2d25779515dd6d5
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2015-06-23 09:48:59 +02:00
2014-12-18 11:16:03 +09:00
2015-06-17 22:38:13 +00:00
2015-05-10 20:03:16 +02:00
2015-03-03 07:12:16 +00:00
2013-11-09 07:45:00 +01:00
2015-04-08 07:50:41 +00:00
2015-06-17 21:42:42 +02:00
2008-11-14 16:59:34 -08:00
2009-03-27 20:20:10 -07:00
2015-06-11 15:20:35 +02:00
Description
RETIRED, Gerrit as used by OpenStack
120 MiB