Fix links for attachments in group projects
Attachment links were set only in the project namespace: that is not
true when the repository belongs to a group or to a fork. This commit
extracts the whole namespace from the git remote link after cloning the
tickets repository.