PATH points to non-existent file in post-commit hook

17 views
Skip to first unread message

Julien Rosen

unread,
Sep 20, 2019, 3:52:29 PM9/20/19
to torto...@googlegroups.com
post commit hook runs a console app

args[0] looks something like  'C:\Users\myname\AppData\Local\Temp\svnADAD.tmp'. 

first couple lines of console app is like so

        static void Main(string[] args)

       
{
             
string[] affectedPaths = File.ReadAllLines(args[0]);

       
}



throws file not found error

navigating to the path in question also confirms that the file does not exist



jlros...@gmail.com

unread,
Sep 20, 2019, 4:02:01 PM9/20/19
to TortoiseSVN
post commit hook runs a console app

first line of console app is like so

args[0] looks something like  'C:\Users\myname\AppData\Local\Temp\svnADAD.tmp'. 

Stefan

unread,
Sep 21, 2019, 4:19:18 AM9/21/19
to TortoiseSVN
The temp file is removed after the dialog is closed.
So if you want access to that file, you have to make sure your hook script runs before the dialog closes. There's an option in the hook script setup to "wait for the script to finish".

Reply all
Reply to author
Forward
0 new messages