From 9f0cf3c09df074ec57616b748630d04d79505d60 Mon Sep 17 00:00:00 2001 From: Nikola Kovacs Date: Fri, 9 May 2014 14:53:26 +0200 Subject: return rsync's exit codes if non-zero in pull and push --- git-fat | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git-fat') diff --git a/git-fat b/git-fat index 9d4b1a1..82b2754 100755 --- a/git-fat +++ b/git-fat @@ -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): -- cgit v1.2.1