diff options
author | Andrew Otto <acotto@gmail.com> | 2014-03-07 14:39:13 -0500 |
---|---|---|
committer | Andrew Otto <acotto@gmail.com> | 2014-03-07 14:39:13 -0500 |
commit | 20bb9ac2d11075e29f681a21d406e3ccdde78a65 (patch) | |
tree | 4c3a8f0bfe102e82acf4d0f6d1b64554819ce7e1 | |
parent | 771b59355167a40c216de2460147cd182a5dcd78 (diff) | |
download | git-fat-20bb9ac2d11075e29f681a21d406e3ccdde78a65.tar.gz |
Adding support for extra rsync options via rsync.options
-rwxr-xr-x | git-fat | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -138,11 +138,12 @@ class GitFat(object): remote = gitconfig_get('rsync.remote', file=cfgpath) ssh_port = gitconfig_get('rsync.sshport', file=cfgpath) ssh_user = gitconfig_get('rsync.sshuser', file=cfgpath) + options = gitconfig_get('rsync.options', file=cfgpath) if remote is None: raise RuntimeError('No rsync.remote in %s' % cfgpath) - return remote, ssh_port, ssh_user + return remote, ssh_port, ssh_user, options def get_rsync_command(self,push): - (remote, ssh_port, ssh_user) = self.get_rsync() + (remote, ssh_port, ssh_user, options) = self.get_rsync() if push: self.verbose('Pushing to %s' % (remote)) else: @@ -156,6 +157,8 @@ class GitFat(object): rshopts += ' -p ' + ssh_port if rshopts: cmd.append('--rsh=ssh' + rshopts) + if options: + cmd.append(options) if push: cmd += [self.objdir + '/', remote + '/'] else: |