Indefero

Issue 818: Invalid path resolution to scripts/git-post-update when creating a repo

Reported by Mateus Caruccio, Aug 3, 2012

It looks like there is an extra '../' in the path to 
scripts/git-post-update when creating the git-hook.

File: src/IDF/Plugin/SyncGit/Serve.php:211

This leads to an error when creating the sym-linking upon repository 
creation, thus the link is not created.

Comment 1 by Thomas Keller, Aug 10, 2012

Hrm... I haven't tested this (I don't use git), but from what I see 
the code looks like this:

$p = 
realpath(dirname(__FILE__).'/../../../../scripts/git-post-update')

Since __FILE__ is src/IDF/Plugin/SyncGit/Serve.php, this  should be

src/IDF/Plugin/SyncGit/../../../../scripts/git-post-update

which should be resolved to

scripts/git-post-update

which does exist.

Have I missed something?

Created: 9 months 14 days ago by Mateus Caruccio

Updated: 9 months 7 days ago

Status: New

Followed by: 1 person

Labels:
Type:Defect
Priority:Medium