diff options
author | Jed Brown <jed@59A2.org> | 2014-05-09 09:45:35 -0500 |
---|---|---|
committer | Jed Brown <jed@59A2.org> | 2014-05-09 09:45:35 -0500 |
commit | 0f6c2802a97cb32d7541b2007804501c57810a05 (patch) | |
tree | d4c17fba46f9159e10e34d80e500402b00c1edd0 | |
parent | 7cb170a7101c3b8599b6aa7765600108c83013dd (diff) | |
parent | 9f0cf3c09df074ec57616b748630d04d79505d60 (diff) | |
download | git-fat-0f6c2802a97cb32d7541b2007804501c57810a05.tar.gz |
Merge branch 'master' of github:nkovacs/git-fat (PR #31)
Support patterns like "git fat push && git push"
* 'master' of github:nkovacs/git-fat:
return rsync's exit codes if non-zero in pull and push
-rwxr-xr-x | git-fat | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -345,6 +345,8 @@ class GitFat(object): self.verbose('Executing: %s' % ' '.join(cmd)) p = subprocess.Popen(cmd, stdin=subprocess.PIPE) p.communicate(input='\x00'.join(files)) + if p.returncode: + sys.exit(p.returncode) def checkout(self, show_orphans=False): 'Update any stale files in the present working tree' for digest, fname in self.orphan_files(): @@ -379,6 +381,8 @@ class GitFat(object): self.verbose('Executing: %s' % ' '.join(cmd)) p = subprocess.Popen(cmd, stdin=subprocess.PIPE) p.communicate(input='\x00'.join(files)) + if p.returncode: + sys.exit(p.returncode) self.checkout() def parse_pull_patterns(self, args): |