- commit
- a6324a7dfb1cb621fe39a2cacc38c7f3fd5e876e
- parent
- 3f7ec74cc31a28ba74c788aae4636d7e531bfa36
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-05-06 04:53
add post-update config option
Diffstat
M | README.md | 1 | + |
M | gitolite/stagit.py | 2 | ++ |
2 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
@@ -31,6 +31,7 @@ Then setup access control: 31 31 ``` 32 32 [private] 33 33 ssh = admin dilbert -1 34 post-update = git --work-tree=/var/www/example checkout -f master 34 35 35 36 [example] 36 37 desc = my shiny new project
diff --git a/gitolite/stagit.py b/gitolite/stagit.py
@@ -76,6 +76,8 @@ def update_repo(repo): 76 76 if os.path.exists(export_ok): 77 77 os.unlink(export_ok) 78 78 -1 79 if config.get(repo, 'post-update'): -1 80 post_update.append(config.get(repo, 'post-update')) 79 81 create_sh_script(os.path.join(repodir, 'hooks', 'post-update'), post_update) 80 82 81 83 with open(os.path.join(repodir, 'description'), 'w') as fh: