You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by makeyunbad <ma...@gmail.com> on 2007/03/06 11:34:01 UTC

Re: Post-commit + Svn Update + Windows 2003 arghh

2006/6/9, Nathan Kidd <na...@spicycrypto.ca>:
> Gonzalo Bourdieu wrote:
> > I don't have any post-commit.bat, the post-commit hook is an .exe
> >
> > I'm using full paths to call svn so that couldn't be a problem (i think).
> >
> > the C# code is very simple, here you have it:
> ...
> >             // Z is the mapped drive
> >             svnProgram.StartInfo.Arguments = "update Z:\\site\\project";
>
> Probably the user your svn service (svnserve / apache) runs under
> doesn't have permission to see this Z:\ share.   There are definitely
> permission issues between logged in / unlogged in users when it comes to
> accessing mapped drives.
>
> -Nathan
>
I have the same problem as Gonzalo Bourdieu. I think this is a true
reason for mapped drive. When he run post-commit.exe from command
line, everything works fine. So is permission a true reason? If I can
access the mapped drive, how can I config the permission?
mine:
windows 2003 sp1
svn 1.4.2

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Post-commit + Svn Update + Windows 2003 arghh

Posted by Andy Levy <an...@gmail.com>.
On 3/6/07, makeyunbad <ma...@gmail.com> wrote:
> 2006/6/9, Nathan Kidd <na...@spicycrypto.ca>:
> > Gonzalo Bourdieu wrote:
> > > I don't have any post-commit.bat, the post-commit hook is an .exe
> > >
> > > I'm using full paths to call svn so that couldn't be a problem (i think).
> > >
> > > the C# code is very simple, here you have it:
> > ...
> > >             // Z is the mapped drive
> > >             svnProgram.StartInfo.Arguments = "update Z:\\site\\project";
> >
> > Probably the user your svn service (svnserve / apache) runs under
> > doesn't have permission to see this Z:\ share.   There are definitely
> > permission issues between logged in / unlogged in users when it comes to
> > accessing mapped drives.
> >
> > -Nathan
> >
> I have the same problem as Gonzalo Bourdieu. I think this is a true
> reason for mapped drive. When he run post-commit.exe from command
> line, everything works fine. So is permission a true reason? If I can
> access the mapped drive, how can I config the permission?

If no user is logged in, the drive probably won't be mapped - you'll
need to use the UNC path. You also need to ensure that the user
account under which Apache/svnserve runs on the SVN server has the
permissions it needs to perform whatever operations it does on that
network share.

Or, you could start your hook script with net use to map the drive to
a letter, using another username.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org