From b8ac8cd3412a56e758d7211273eb816af62d827f Mon Sep 17 00:00:00 2001 From: Chris Marinos Date: Wed, 23 Apr 2014 16:32:53 -0400 Subject: allow fat settings to come from global git configuration --- git-fat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'git-fat') diff --git a/git-fat b/git-fat index 7edb7ba..9d4b1a1 100755 --- a/git-fat +++ b/git-fat @@ -105,8 +105,10 @@ def gitconfig_get(name, file=None): args.append(name) p = subprocess.Popen(args, stdout=subprocess.PIPE) output = p.communicate()[0].strip() - if p.returncode != 0: + if p.returncode and file is None: return None + elif p.returncode: + return gitconfig_get(name) else: return output def gitconfig_set(name, value, file=None): -- cgit v1.2.1