Quantcast
Channel: BitNami Answers - latest questions
Viewing all articles
Browse latest Browse all 2052

Post Commit Hook hangs

$
0
0

Okay, so I'm running BitNami Subversion Stack 1.6.6-0 according to the change log on a Windows 2003 server machine. (I'm a client guy being forced into tweaking the current system -- I'm trying to avoid making any changes to the server that aren't 100% necessary which includes updates to software)

My repo is up and running perfectly, commits and checkouts working like a charm.

I wrote a batch file to update a working directory on the machine with new commit data. This batch file works perfectly when run by hand.

The problem is, when placed in the hooks directory as post-commit.bat anytime I make a commit, it hangs, results in a locked file, and the batch file never runs. But the commit takes place. Once I cleanup the working directory, and update, the changes take effect.

EDIT: So today I've learned about redirecting output and saving log files. After much searching it turns out that when run by SVN, it's run as "Default User" and when run by hand, I'm logged in as Administrator. So I had taken the following block (obviously adding my own update call) from the Start Menu Use Subversion Stack item. And frankly, while I know this is probably a permissions issue, I've been unable to identify what and where I need to change things.

CALL C:\PROGRA~1\BITNAM~1\scripts\setenv.bat" if not exist "%USERPROFILE%\BitNami Subversion Stack projects" mkdir "%USERPROFILE%\BitNami Subversion Stack projects" cd "%USERPROFILE%\BitNami Subversion Stack projects

svn update "C:\Program Files\nodejs" >>%LogPath%

Any help in pointing me in the right direction would be greatly appreciated.


Viewing all articles
Browse latest Browse all 2052

Trending Articles