summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJed Brown <jed@59A2.org>2014-04-29 09:32:52 -0600
committerJed Brown <jed@59A2.org>2014-04-29 09:32:52 -0600
commit7cb170a7101c3b8599b6aa7765600108c83013dd (patch)
tree21e244ebbda92a327d9283a6b529207b7930e542
parent376c5b9817d9e6e1a5a3ee04720bb656431d741a (diff)
parentb8ac8cd3412a56e758d7211273eb816af62d827f (diff)
downloadgit-fat-7cb170a7101c3b8599b6aa7765600108c83013dd.tar.gz
Merge branch 'master' of https://github.com/ChrisMarinos/git-fat
Add ability to locally specify variables like rsync.sshuser * 'master' of https://github.com/ChrisMarinos/git-fat: allow fat settings to come from global git configuration
-rwxr-xr-xgit-fat4
1 files changed, 3 insertions, 1 deletions
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):