We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd7927c commit 5bee5d5Copy full SHA for 5bee5d5
git_repo/repo.py
@@ -532,10 +532,12 @@ def main(args):
532
log.exception('------------------------------------')
533
return 2
534
535
-
536
537
def cli(): #pragma: no cover
538
- sys.exit(main(docopt(__doc__.format(self=sys.argv[0].split('/')[-1], version=__version__))))
+ try:
+ sys.exit(main(docopt(__doc__.format(self=sys.argv[0].split('/')[-1], version=__version__))))
+ finally:
539
+ # Whatever happens, make sure that the cursor reappears with some ANSI voodoo
540
+ sys.stdout.write('\033[?25h')
541
542
if __name__ == '__main__': #pragma: no cover
543
cli()
0 commit comments