projects
/
Ultimately_Untrue_Thought.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix pull to working repo in post-receive hook, probably
[Ultimately_Untrue_Thought.git]
/
provisioning
/
pelican_scheduler.py
diff --git
a/provisioning/pelican_scheduler.py
b/provisioning/pelican_scheduler.py
index
8882e56
..
8701227
100755
(executable)
--- a/
provisioning/pelican_scheduler.py
+++ b/
provisioning/pelican_scheduler.py
@@
-62,7
+62,12
@@
def schedule(command, when):
def main():
# sync our "working" repo with the bare one
def main():
# sync our "working" repo with the bare one
- subprocess.run(["git", "pull"], cwd=WORKING_REPO)
+
+ # but first, don't let the fact that this is running as a hook on the bare
+ # repo confuse us
+ our_env = os.environ.copy()
+ del our_env['GIT_DIR']
+ subprocess.run(["git", "pull"], cwd=WORKING_REPO, env=our_env)
# look for scheduled future posts
future_publication_times = get_future_publication_times()
# look for scheduled future posts
future_publication_times = get_future_publication_times()