Good morning all.
I have been trying to figure this out all day, and i have nearly given
up... then i found this group, so hopefully someone here can help...
I have built a very basic Post-Update script in a bare git repo, which
writes the given Revision Hash to a text file. The plan for that text
file is as follows:
Have a Windows EXE running, watching that folder for new text files.
when a new one comes in, read the hash, create a temp folder, checkout
the given code to that temp folder for that hash
then it will run msbuild on the sln and put the results somewhere (the
idea would be deploy to a website, something silular to what AppHarbor
does, but locally)
I have gotten the upto the creating of the temp folder, and the
msbuild parts pretty much working, but the problem is the git sync
part...
At the moment, i am tempted to just use a Process in .NET and kick off
git.exe to do the job, but i would like to try and do this in
gitsharp.
Any ideas?
I have an open repo on github at
https://github.com/tiernano/GitPushMSBuild.
the code GitBuilder/program.cs file is where the "magic should happen"
if anyone can tell me what i am doing wrong (Getting a Null Reference
Exception).
Thanks in advance.
--Tiernan