#!/usr/bin/env ruby #-- # Copyright (C) 2009 Brown Beagle Software # Copyright (C) 2009 Darcy Laycock # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ base = __FILE__ # Get out of symlink-hell and then require the gitauth file. base = File.readlink(base) while File.symlink?(base) require File.expand_path(File.join(File.dirname(base), "..", "lib", "gitauth")) # Start the cli client. GitAuth::Client.start!(ARGV[0], ENV["SSH_ORIGINAL_COMMAND"])