Part Number: AM4378
Even I faced the same error in Ubuntu 18.04 machine,
I replaced the like from
"runfetchcmd("%s branch --set-upstream %s origin/%s" % (ud.basecmd, branchname, \"
to
"runfetchcmd("%s branch --set-upstream-to %s origin/%s" % (ud.basecmd, branchname, \" and "runfetchcmd("%s branch --track %s origin/%s" % (ud.basecmd, branchname, \"
I ended up with two different errors.