- if len(args) == 0:
- location = read_string(os.path.join(git.base_dir, 'branches',
- 'origin'))
- elif len(args) == 1:
- location = args[0]
- branch = os.path.join(git.base_dir, 'branches', location)
- if os.path.isfile(branch):
- location = read_string(branch)
- else: