ydeploy icon indicating copy to clipboard operation
ydeploy copied to clipboard

runLocally bin/git nimmt Pfad aus Remote

Open ynamite opened this issue 1 year ago • 0 comments

Vielleicht mache ich etwas falsch, aber folgende Zeile gibt nicht den Pfad zur lokalen Git bin zurück, sondern den remote Pfad: https://github.com/yakamara/ydeploy/blob/7e04a5f1415dbf07f86ad8aa35d18637ef68c043/deployer/config.php#L51

Bei mir ist Git lokal unter /usr/bin/git installiert. Es wird aber versucht Git von /usr/local/bin/git aufzurufen. Auf remote wäre letzterer Pfad auch korrekt.

Wenn ich direkt in der Zeile davor folgendes einfüge, klappt es:

set('bin/git', static fn () => runLocally('which git'));

es scheint mir als ob das ein Fehler ist, der bisher möglicherweise nicht aufgefallen ist, da Git üblicherweise unter /usr/bin/git installiert ist.

ynamite avatar Mar 12 '24 22:03 ynamite