Skip to content
Browse files

rename SSH remote to Sftp

  • Loading branch information...
1 parent 6f7b4f4 commit b498a0bcf083aa9e41bcdab0dcb813d9455b0f14 @hbons committed
Showing with 11 additions and 11 deletions.
  1. +4 −4 README.md
  2. +6 −6 git-bin/Remotes/{SSHRemote.cs → SftpRemote.cs}
  3. +1 −1 git-bin/git-bin.csproj
View
8 README.md
@@ -29,12 +29,12 @@ $ git config --global git-bin.s3key "your key"
$ git config --global git-bin.s3secretKey "your secret key"
```
-For the SSH/SFTP backend:
+For the SFTP backend:
```bash
-$ git config --global git-bin.sshUrl "your ssh url to an sftp folder"
-$ git config --global git-bin.sshPrivateKeyFilePath "your private key"
-$ git config --global git-bin.sshPrivateKeyPassphrase "your passphrase to unlock the private key"
+$ git config --global git-bin.sftpUrl "your ssh url to an sftp folder"
+$ git config --global git-bin.sftpPrivateKeyFilePath "your private key"
+$ git config --global git-bin.sftpPrivateKeyPassphrase "your passphrase to unlock the private key"
```
View
12 git-bin/Remotes/SSHRemote.cs → git-bin/Remotes/SftpRemote.cs
@@ -8,7 +8,7 @@
namespace GitBin.Remotes {
- public class SSHRemote : IRemote {
+ public class SftpRemote : IRemote {
public event Action<int> ProgressChanged;
@@ -18,12 +18,12 @@ public class SSHRemote : IRemote {
private string remote_path;
- public SSHRemote (IConfigurationProvider configurationProvider)
+ public SftpRemote (IConfigurationProvider configurationProvider)
{
this.configurationProvider = configurationProvider;
- Uri ssh_url = new Uri ((string) this.configurationProvider.Settings ["sshurl"]);
- string ssh_private_key_file = (string) this.configurationProvider.Settings ["sshprivatekeyfile"];
+ Uri ssh_url = new Uri ((string) this.configurationProvider.Settings ["sftpurl"]);
+ string ssh_private_key_file = (string) this.configurationProvider.Settings ["sftpprivatekeyfile"];
this.remote_path = ssh_url.AbsolutePath + "/chunks";
@@ -39,8 +39,8 @@ public SSHRemote (IConfigurationProvider configurationProvider)
string passphrase = "";
- if (this.configurationProvider.Settings.ContainsKey ("sshprivatekeypassphrase"))
- passphrase = (string) this.configurationProvider.Settings ["sshprivatekeypassphrase"];
+ if (this.configurationProvider.Settings.ContainsKey ("sftpprivatekeypassphrase"))
+ passphrase = (string) this.configurationProvider.Settings ["sftpprivatekeypassphrase"];
this.client = new SftpClient (host, port, user, new PrivateKeyFile (ssh_private_key_file, passphrase));
this.client.Connect ();
View
2 git-bin/git-bin.csproj
@@ -79,7 +79,7 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Remotes\IRemote.cs" />
- <Compile Include="Remotes\SSHRemote.cs" />
+ <Compile Include="Remotes\SftpRemote.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />

0 comments on commit b498a0b

Please sign in to comment.
Something went wrong with that request. Please try again.