Announcement

Collapse
No announcement yet.

How do I connect to the VisualSVN URL from my post-commit.bat file

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I connect to the VisualSVN URL from my post-commit.bat file

    I have the following lines of code in my post-commit.bat:
    @ECHO OFF & setLocal EnableDelayedExpansion
    SET REPOS=%1
    SET REV=%2

    SET repoURL=http://subversion.mycompanyname.com
    SET logDir=%REPOS%/hooks
    SET PATH=%PATH%
    svnlook changed %1

    for /F "eol= delims=" %%A in ('svnlook dirs-changed %1 -r %2') do svn export "%repoURL%/%%A" "c:/svn_exports/%%A" --force

    SET SMTP_SERVER="mailserver.mycomanyname.com"

    VisualSVNServerHooks.exe ^
    commit-notification %REPOS% -r %REV% --no-diffs ^
    --from "email@mail.com" --to "email@mail.com" ^
    --smtp-server %SMTP_SERVER%

    When I run this from command line to test, it works fine as it gives me an option to put in my password. But when I have it triggered on a commit, it hangs. I redirected my output to a log file and saw that it was waiting for me to put in my password. Can somebody suggest a way to get this working when a commit takes place?

    Thanks

    Sharma
Working...
X