• R/O
  • SSH
  • HTTPS

backup-svn: Commit


Commit MetaInfo

Revision6 (tree)
Time2020-01-15 06:14:11
Authorgottfried

Log Message

set svnadmin to ini-path or find from %PATH%

Change Summary

Incremental Difference

--- trunk/backup-svn/main.cpp (revision 5)
+++ trunk/backup-svn/main.cpp (revision 6)
@@ -39,11 +39,14 @@
3939 {
4040 }
4141
42- //Test
43- std::wstring program_wpath = IniFile::getString(L"FILES", L"SVNADMIN_PATH", L".");
44- //std::string program_path = IniFile::getString( "FILES", "SVNADMIN_PATH", ".");
42+ //Get path for svnadmin
43+ std::wstring program_wpath = IniFile::getString(L"FILES", L"SVNADMIN_PATH", L"");
44+ //std::string program_path = IniFile::getString( "FILES", "SVNADMIN_PATH", "");
4545
46- std::wstring svnadmin = program_wpath + L"/svnadmin";
46+ std::wstring svnadmin = program_wpath;
47+ if(svnadmin.length())
48+ svnadmin += L'/';
49+ svnadmin += L"svnadmin";
4750
4851 //TODO: svnadmin dump "repodir" > "repodir.dump"
4952
Show on old repository browser