diff --git a/lib/vcs-git.rb b/lib/vcs-git.rb index 55b3b7b..3c46c19 100644 --- a/lib/vcs-git.rb +++ b/lib/vcs-git.rb @@ -1,43 +1,43 @@ # Generic ruby library for KDE extragear/playground releases # # Copyright © 2009-2010 Harald Sitter # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License or (at your option) version 3 or any later version # accepted by the membership of KDE e.V. (or its successor approved # by the membership of KDE e.V.), which shall act as a proxy # defined in Section 14 of version 3 of the license. # # 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . module GIT module_function def getSrc(repo,folder) branch = "master" branch = $gitbranch if $gitbranch != nil puts "Shallow cloning branch #{branch}..." if ($options[:customsrc] == nil) then - system("git clone --branch #{branch} --depth 1 git://gitorious.org/#{NAME}/#{NAME}.git #{folder}") + system("git clone --branch #{branch} --depth 1 https://anongit.kde.org/#{NAME}.git #{folder}") else system("git clone --branch #{branch} --depth 1 #{$options[:customsrc]} #{folder}") end end def tagSrc(tag) puts "To tag with your standard Gitorious project that bans push -f: *Ask an admin to uncheck the ban of push -f's *git tag -a -m \"Some ever nice tage message\" v#{tag.split("/")[-1]} -*git push --tags git://git@gitorious.org:#{NAME}/#{NAME}.git +*git push --tags git@git.kde.org:#{NAME}.git *tell admin to reenable the push -f ban" end end