mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-07 15:01:34 +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()
|
operation_type = str(options.operation).lower()
|
||||||
|
|
||||||
# Got an argument, check if it is valid.
|
# Got an argument, check if it is valid.
|
||||||
if operation_type.lower() not in ("branch", "checkout"):
|
if operation_type not in ("branch", "checkout"):
|
||||||
optParser.error("Invalid operation '%s' for '-o' flag.") % \
|
optParser.error("Invalid operation '%s' for '-o' flag." % \
|
||||||
operation_type
|
operation_type)
|
||||||
|
|
||||||
|
|
||||||
# Fetch our current directory to return to later.
|
# Fetch our current directory to return to later.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user