Hello,
Im up in evaluating if GitSharp if that is something I can use for get
git support for a internal project.
I have got pretty much everything to work except that I have a problem
with using the PushCommand.
Everytime when I try to use the PushCommand I get the following
exception:
A first chance exception of type 'Tamir.SharpSsh.jsch.JSchException'
occurred in Tamir.SharpSSH.dll
Additional information: UnknownHostKey:
review.acompany.net. RSA key
fingerprint is [a real fingerprint]
The code that I use is the following:
Repository repository = new Repository(@"C:\Documents and Settings
\23056032\my_repos\brat-android-agent");
repository.Index.Add(@"C:\Documents and Settings\Mikael\my_repos
\project\cp2dev.bat");
Commit commited = repository.Commit("Testing fromGitC#", new
Author("Mikael Johansson", "mik...@aCompany.com"));
if(commited.IsValid)
{
PushCommand pushCommand = new
PushCommand
{
RefSpecs = new List<RefSpec>
{
new RefSpec("HEAD", "refs/for/master")
},
Force = true,
Repository = repository
};
pushCommand.AddAll();
pushCommand.Execute();
}
Do anyone have any clue why I get that Exception? What am I missing.
Thanks in advance
--
For infos about GitSharp visit
http://www.eqqon.com/index.php/GitSharp
To join this group visit
http://groups.google.com/group/gitsharp