summaryrefslogtreecommitdiffstats
path: root/script/git-daemon
diff options
context:
space:
mode:
authorMarius Mathiesen <marius.mathiesen@gmail.com>2009-03-19 12:59:44 +0100
committerJohan Sørensen <johan@johansorensen.com>2009-04-22 15:17:02 +0200
commit52049c79a006cd0daff49bad684034d74f7a2294 (patch)
tree577e443a8f5c9a4487fec46085c75b30b2f3ae01 /script/git-daemon
parente3d29aed5c11b54b6a0a15eaec4ea0836f77dc97 (diff)
downloadgitorious-mainline-outdated-52049c79a006cd0daff49bad684034d74f7a2294.zip
gitorious-mainline-outdated-52049c79a006cd0daff49bad684034d74f7a2294.tar.gz
gitorious-mainline-outdated-52049c79a006cd0daff49bad684034d74f7a2294.tar.bz2
Adding protocol attribute to Cloner:
- The git daemon sets this as 'git' - The http cloning metal sets it as 'http' The migration includes setting all previous clones to 'git'
Diffstat (limited to 'script/git-daemon')
-rwxr-xr-xscript/git-daemon2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/git-daemon b/script/git-daemon
index 0fc2642..472c3eb 100755
--- a/script/git-daemon
+++ b/script/git-daemon
@@ -112,7 +112,7 @@ module Git
else
geoip = GeoIP.new(File.join(RAILS_ROOT, "data", "GeoIP.dat"))
localization = geoip.country(ip)
- repository.cloned_from(ip, localization[3], localization[5])
+ repository.cloned_from(ip, localization[3], localization[5], 'git')
end
Dir.chdir(real_path) do