projects
/
invirt/packages/invirt-dev.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
811f7dd
)
Use shared git repositories
0.1.7
author
Greg Brockman
<gdb@mit.edu>
Mon, 23 Aug 2010 23:16:22 +0000
(19:16 -0400)
committer
Greg Brockman
<gdb@mit.edu>
Mon, 23 Aug 2010 23:56:15 +0000
(19:56 -0400)
debian/changelog
patch
|
blob
|
history
invirt-add-repo
patch
|
blob
|
history
diff --git
a/debian/changelog
b/debian/changelog
index
a05a0ae
..
3f374a0
100644
(file)
--- a/
debian/changelog
+++ b/
debian/changelog
@@
-1,6
+1,7
@@
invirt-dev (0.1.7) unstable; urgency=low
* Save build log to file containing package name
invirt-dev (0.1.7) unstable; urgency=low
* Save build log to file containing package name
+ * Use shared git repositories
-- Greg Brockman <gdb@mit.edu> Mon, 23 Aug 2010 18:12:45 -0400
-- Greg Brockman <gdb@mit.edu> Mon, 23 Aug 2010 18:12:45 -0400
diff --git
a/invirt-add-repo
b/invirt-add-repo
index
bb48b49
..
b2c4dbc
100755
(executable)
--- a/
invirt-add-repo
+++ b/
invirt-add-repo
@@
-30,7
+30,9
@@
def main():
print 'Creating new repo at %s' % repo_path
os.makedirs(repo_path)
print 'Creating new repo at %s' % repo_path
os.makedirs(repo_path)
- common.captureOutput(['git', 'init', '--bare'], cwd=repo_path)
+ common.captureOutput(['git', 'init', '--bare', '--shared=group'], cwd=repo_path)
+ common.captureOutput(['git', 'config', 'receive.denyNonFastForwards', 'false'], cwd=repo_path)
+ common.captureOutput(['chgrp', 'repo', '-R', '.'], cwd=repo_path)
print 'Replacing hooks directory with a symlink'
hooks_dir = os.path.join(repo_path, 'hooks')
shutil.rmtree(hooks_dir)
print 'Replacing hooks directory with a symlink'
hooks_dir = os.path.join(repo_path, 'hooks')
shutil.rmtree(hooks_dir)