Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Sysadmin/Autocheckout repositories
(view source)
Revision as of 17:16, 15 January 2011
5 bytes removed
,
17:16, 15 January 2011
no edit summary
Line 26:
Line 26:
sharedRepository = true
sharedRepository = true
logallrefupdates = true
logallrefupdates = true
−
#worktree = /etc/bind
+
[receive]
[receive]
denycurrentbranch = ignore
denycurrentbranch = ignore
Line 38:
Line 38:
* We use a post-receive hook to checkout changes to the work tree and signal daemons to reload the configuration
* We use a post-receive hook to checkout changes to the work tree and signal daemons to reload the configuration
−
#!/bin/bash
+
#!/bin/bash
-x
−
/bin/bash /usr/share/doc/
git
-core/contrib/
hooks/post-receive-email
+
#
+
# note: this script runs with .
git
as cwd and GIT_DIR=.
+
#
+
hooks/post-receive-email
+
cd ..
+
unset GIT_DIR
git checkout -f
git checkout -f
−
# reload daemons here
Bernie
Bureaucrats
,
Check users
,
Administrators
1,784
edits