Commit 0ab0ef16 authored by Ilia Slepnev's avatar Ilia Slepnev Committed by Grzegorz Daniluk

bare_top/gen_sdbsyn.py: don't crash when git username is not set

parent 07d9aa05
......@@ -94,7 +94,8 @@ def git_username():
uname = ""
for n in user[:-1]:
uname = uname + n[0]
uname = uname + user[-1]
if len(user):
uname = uname + user[-1]
return uname
def main():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment