Skip to content

Instantly share code, notes, and snippets.

@evandrix
Created June 30, 2011 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evandrix/1057413 to your computer and use it in GitHub Desktop.
Save evandrix/1057413 to your computer and use it in GitHub Desktop.
hub fix for `hub clone a / b` => `hub clone a/b`
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