summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Lucarella <leandro.lucarella@sociomantic.com>2014-07-24 16:27:36 +0200
committerMihails Strasuns <mihails.strasuns@sociomantic.com>2014-09-25 14:07:47 +0200
commit017a4cadbbdbe8ed3deadcf578b8d0d20f8172f5 (patch)
treecf3f7d9af2486fa07b02cb103db2036cc3ff3a2c
parent03aa90dee2f37c048abcc97c21be2a0891b99848 (diff)
setup: Use the configured username if present
-rwxr-xr-xgit-hub2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hub b/git-hub
index 1a1f78f..80c1103 100755
--- a/git-hub
+++ b/git-hub
@@ -651,7 +651,7 @@ class SetupCmd (object):
not sys.stdin.isatty():
die("Can't perform an interactive setup outside a tty")
if username is None:
- username = getpass.getuser()
+ username = config.username or getpass.getuser()
reply = raw_input('GitHub username [%s]: ' % username)
if reply:
username = reply