David J
David J

Reputation: 743

Git on windows: how to get pre-receive hook to run on the server using a file share

Unfortunately I have to run git on Windows.

I am sharing the git repository using a windows share (e.g. //ip address/GitRepo.git)

The problem is that git seems to treat this as a local path and runs the pre-receive hook on the client!

e.g. if my pre-receive hook consists of something along the lines of:

echo $(ls /C)

then I see the contents of the client C drive and not the server

How do I get the pre-receive hook to run on the server?

Upvotes: 2

Views: 234

Answers (1)

David J
David J

Reputation: 743

Never mind. Just use SSH rather than a windows share

Upvotes: 2

Related Questions