| Index: git_map_branches.py
|
| diff --git a/git_map_branches.py b/git_map_branches.py
|
| index 44f13c3bd5abc010269e48d05d6d82a7374ddf65..78f50df0ad1d24c4fe76856979f557d2dd68456a 100755
|
| --- a/git_map_branches.py
|
| +++ b/git_map_branches.py
|
| @@ -266,13 +266,18 @@ def main(argv):
|
| parser.add_argument('--no-color', action='store_true', dest='nocolor',
|
| help='Turn off colors.')
|
|
|
| - opts = parser.parse_args(argv[1:])
|
| + opts = parser.parse_args(argv)
|
|
|
| mapper = BranchMapper()
|
| mapper.verbosity = opts.v
|
| mapper.output.nocolor = opts.nocolor
|
| mapper.start()
|
| print mapper.output.as_formatted_string()
|
| + return 0
|
|
|
| if __name__ == '__main__':
|
| - sys.exit(main(sys.argv))
|
| + try:
|
| + sys.exit(main(sys.argv[1:]))
|
| + except KeyboardInterrupt:
|
| + print 'interrupted'
|
| + sys.exit(1)
|
|
|