mirror of https://github.com/zulip/zulip.git
Repoint to new repository
(imported from commit bc90453bf9776b1e3d05c222f78cc66383278c32)
This commit is contained in:
parent
84c147a379
commit
80c2eb0367
|
@ -73,7 +73,7 @@ EOF2
|
||||||
# clone humbug repository
|
# clone humbug repository
|
||||||
cd /root
|
cd /root
|
||||||
rm -rf /root/humbug
|
rm -rf /root/humbug
|
||||||
git clone humbug@git.zulip.net:/srv/git/humbug.git
|
git clone git@git.zulip.net:eng/zulip.git humbug
|
||||||
cd /root/humbug
|
cd /root/humbug
|
||||||
git checkout master
|
git checkout master
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -4,14 +4,14 @@ class zulip::git {
|
||||||
$git_packages = [ ]
|
$git_packages = [ ]
|
||||||
package { $git_packages: ensure => "installed" }
|
package { $git_packages: ensure => "installed" }
|
||||||
|
|
||||||
file { '/srv/git/humbug.git':
|
file { '/home/git/repositories/eng/zulip.git/hooks':
|
||||||
ensure => 'directory',
|
ensure => 'directory',
|
||||||
owner => 'humbug',
|
owner => 'git',
|
||||||
group => 'humbug',
|
group => 'git',
|
||||||
mode => 755,
|
mode => 755,
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/srv/git/humbug.git/hooks/post-receive':
|
file { '/home/git/repositories/eng/zulip.git/hooks/post-receive':
|
||||||
ensure => 'link',
|
ensure => 'link',
|
||||||
target => '/home/humbug/humbug/tools/post-receive',
|
target => '/home/humbug/humbug/tools/post-receive',
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# Zulip's post-receive hook. There is a symlink
|
# Zulip's post-receive hook. There is a symlink
|
||||||
# from /srv/git/humbug.git/hooks/post-receive
|
# from /home/git/repositories/eng/zulip.git/hooks/post-receive
|
||||||
# to ~humbug/humbug/tools/post-receive
|
# to ~humbug/humbug/tools/post-receive
|
||||||
# on git.zulip.net. So to deploy changes to this script, run
|
# on git.zulip.net. So to deploy changes to this script, run
|
||||||
#
|
#
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
if ! [ -d ".git/hooks/" ]; then
|
if ! [ -d ".git/hooks/" ]; then
|
||||||
echo "Error: Could not find .git/hooks directory"
|
echo "Error: Could not find .git/hooks directory"
|
||||||
echo "Please re-run this script from the root of your humbug.git checkout"
|
echo "Please re-run this script from the root of your zulip.git checkout"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ deploy_path = os.path.join(DEPLOYMENTS_DIR, timestamp)
|
||||||
|
|
||||||
logging.info("Cloning the repository")
|
logging.info("Cloning the repository")
|
||||||
subprocess.check_call(["git", "clone", "-q", "-b", refname,
|
subprocess.check_call(["git", "clone", "-q", "-b", refname,
|
||||||
"humbug@git.zulip.net:/srv/git/humbug.git",
|
"git@git.zulip.net:eng/zulip.git",
|
||||||
deploy_path], stdout=open('/dev/null', 'w'))
|
deploy_path], stdout=open('/dev/null', 'w'))
|
||||||
os.chdir(deploy_path)
|
os.chdir(deploy_path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue