Created
June 30, 2011 22:15
-
-
Save evandrix/1057413 to your computer and use it in GitHub Desktop.
hub fix for `hub clone a / b` => `hub clone a/b`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Hub | |
class Runner | |
attr_reader :args | |
def initialize(*args) | |
# $ hub ["clone", "rtomayko", "/", "tilt"] => hub ["clone", "rtomayko/tilt"] | |
if args[0] == "clone" and args[2] = "/" and args.length == 4 | |
args = ["clone", args[1..3].join] | |
end | |
@args = Args.new(args) | |
Commands.run(@args) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment