diff options
author | Chris Marinos <chris@chrismarinos.com> | 2014-04-23 16:32:53 -0400 |
---|---|---|
committer | Chris Marinos <chris@chrismarinos.com> | 2014-04-23 16:32:53 -0400 |
commit | b8ac8cd3412a56e758d7211273eb816af62d827f (patch) | |
tree | 21e244ebbda92a327d9283a6b529207b7930e542 | |
parent | 376c5b9817d9e6e1a5a3ee04720bb656431d741a (diff) | |
download | git-fat-b8ac8cd3412a56e758d7211273eb816af62d827f.tar.gz |
allow fat settings to come from global git configuration
-rwxr-xr-x | git-fat | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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): |