summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Otto <acotto@gmail.com>2014-03-07 14:39:13 -0500
committerAndrew Otto <acotto@gmail.com>2014-03-07 14:39:13 -0500
commit20bb9ac2d11075e29f681a21d406e3ccdde78a65 (patch)
tree4c3a8f0bfe102e82acf4d0f6d1b64554819ce7e1
parent771b59355167a40c216de2460147cd182a5dcd78 (diff)
downloadgit-fat-20bb9ac2d11075e29f681a21d406e3ccdde78a65.tar.gz
Adding support for extra rsync options via rsync.options
-rwxr-xr-xgit-fat7
1 files changed, 5 insertions, 2 deletions
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: