mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +00:00
* get-branches: Sub string for invalid operation correctly.
This commit is contained in:
parent
a26bfee8bb
commit
28d84fa1a8
@ -69,9 +69,9 @@ def main():
|
||||
operation_type = str(options.operation).lower()
|
||||
|
||||
# Got an argument, check if it is valid.
|
||||
if operation_type.lower() not in ("branch", "checkout"):
|
||||
optParser.error("Invalid operation '%s' for '-o' flag.") % \
|
||||
operation_type
|
||||
if operation_type not in ("branch", "checkout"):
|
||||
optParser.error("Invalid operation '%s' for '-o' flag." % \
|
||||
operation_type)
|
||||
|
||||
|
||||
# Fetch our current directory to return to later.
|
||||
|
Loading…
x
Reference in New Issue
Block a user