From 20bb9ac2d11075e29f681a21d406e3ccdde78a65 Mon Sep 17 00:00:00 2001 From: Andrew Otto Date: Fri, 7 Mar 2014 14:39:13 -0500 Subject: Adding support for extra rsync options via rsync.options --- git-fat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'git-fat') diff --git a/git-fat b/git-fat index e62f99b..8078fc3 100755 --- a/git-fat +++ b/git-fat @@ -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: -- cgit v1.2.1