1

I have a php script which i use to pull the svn version number (fyi: accepted answer here: How can I get the svn revision number in PHP? is incorrect).

i first run:

exec('svn info | grep URL', $y); 

to get the url of the repo, and then run:

exec('svn info ' . $url . ' | grep Revision', $z);

to get the revision of the latest in repo.

the first command runs fine; but the 2nd hangs in Windows. I am pretty sure this used to work; any ideas why adding the url to the svn command fails in Windows PHP exec call?

Community
  • 1
  • 1
liquidcms
  • 301
  • 1
  • 3
  • 17

0 Answers0